<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3115248951607344463</id><updated>2024-10-02T05:02:04.706-04:00</updated><category term="file download"/><category term="file listing"/><category term="java"/><category term="jsp"/><category term="mongo db startuo summary"/><category term="server"/><category term="web.xml"/><title type='text'>Technology Experiments</title><subtitle type='html'>My experiments with different technologies.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>41</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-5246540064224891479</id><published>2018-03-18T22:33:00.000-04:00</published><updated>2018-03-18T22:33:01.243-04:00</updated><title type='text'></title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Courier; color: #fff0a5; background-color: #13773d}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;yo angular &lt;app-name&gt; inside folder.&lt;/app-name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;npm install --save-dev karma jasmine karma-jasmine karma-firefox-launcher grunt-cli grunt-karma&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Protractor issue:&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
If you are on Mac:&lt;/div&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;brew upgrade selenium-server-standalone
brew upgrade chromedriver
&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;background-color: white; border: 0px; box-sizing: inherit; clear: both; color: #242729; font-family: Arial, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, sans-serif; font-size: 15px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; padding: 0px; vertical-align: baseline;&quot;&gt;
if the above two are not installed:&lt;/div&gt;
&lt;pre style=&quot;background-color: #eff0f1; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; vertical-align: baseline; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;brew install selenium-server-standalone
brew install chromedriver&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; npm install chromedriver&lt;br /&gt;
&amp;nbsp; &amp;nbsp; webdriver-manager update&lt;br /&gt;
&amp;nbsp; &amp;nbsp; webdriver-manager start&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; protractor conf.js&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/5246540064224891479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2018/03/p.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5246540064224891479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5246540064224891479'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2018/03/p.html' title=''/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-6958363329143173365</id><published>2016-07-18T09:20:00.003-04:00</published><updated>2016-07-18T09:20:55.064-04:00</updated><title type='text'> fatal error: &#39;openssl/ssl.h&#39; file not found on Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Correcting the problem -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;First make sure Command Line tools are already installed.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;xcode-select --install&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;xcode-select: error: command line tools are already installed, use &quot;Software Update&quot; to install updates&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;using Brew to update openssl -&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sudo brew update&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sudo brew install openssl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sudo brew link --force openssl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/6958363329143173365/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2016/07/fatal-error-opensslsslh-file-not-found.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6958363329143173365'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6958363329143173365'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2016/07/fatal-error-opensslsslh-file-not-found.html' title=' fatal error: &#39;openssl/ssl.h&#39; file not found on Mac'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-7741801671711074800</id><published>2016-07-17T12:57:00.000-04:00</published><updated>2016-07-17T12:57:15.262-04:00</updated><title type='text'>Adding curl library in  C project in Xcode </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Steps:&lt;div&gt;
1. Click over the project name in Xcode.&lt;/div&gt;
&lt;div&gt;
2. Go to &quot;Build Phases&quot; and expand &quot;Link Binary with Libraries&quot;.&lt;/div&gt;
&lt;div&gt;
3. Click &quot;+&quot; sign and &quot;Add Other&quot;.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
4. Click &quot;Shift&quot;&amp;nbsp;+ &quot;Command&quot;&amp;nbsp;+ &quot;G&quot;. This will launch a folder select dialogue.&lt;/div&gt;
&lt;div&gt;
5. Go to &quot;/usr/lib&quot; and then select &quot;libcurl.dylib&quot;.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/7741801671711074800/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2016/07/adding-curl-library-in-c-project-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7741801671711074800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7741801671711074800'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2016/07/adding-curl-library-in-c-project-in.html' title='Adding curl library in  C project in Xcode '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-3057975878101926438</id><published>2016-05-13T11:41:00.001-04:00</published><updated>2016-05-13T11:41:16.200-04:00</updated><title type='text'>Setting System properties using ADB and accessing in #android code </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
ADB command to set system properties-&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;adb shell setprop test.android.Sysprop Sandeep&amp;nbsp;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Android code:&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp;try {&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class clazz = Class.forName(&quot;android.os.SystemProperties&quot;);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Parameters Types&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; @SuppressWarnings(&quot;rawtypes&quot;)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Class[] paramTypes = new Class[1];&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; paramTypes[0] = String.class;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Method get = clazz.getMethod(&quot;get&quot;, paramTypes);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Parameters&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Object[] params = new Object[1];&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; params[0] = &quot;test.android.Sysprop&quot;;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; String ret = (String) get.invoke(clazz, params);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Log.i(TAG,&quot;ret:&quot;+ret);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }catch(Exception e){&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Log.e(TAG,e.getMessage(),e);&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/3057975878101926438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2016/05/setting-system-properties-using-adb-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3057975878101926438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3057975878101926438'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2016/05/setting-system-properties-using-adb-and.html' title='Setting System properties using ADB and accessing in #android code '/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-7080898355392007629</id><published>2015-12-17T11:22:00.002-05:00</published><updated>2015-12-17T11:22:37.097-05:00</updated><title type='text'>Remove .idea or some not needed files from remote</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;







&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git rm -r --cached .idea&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git rm -r --cached &lt;not_needed_file_name&gt;&lt;/not_needed_file_name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git commit -m &quot;Removing not necessary files&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git push origin &amp;nbsp;&lt;branch_name&gt;&lt;/branch_name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/7080898355392007629/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/12/remove-idea-or-some-not-needed-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7080898355392007629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7080898355392007629'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/12/remove-idea-or-some-not-needed-files.html' title='Remove .idea or some not needed files from remote'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-3600160078847567182</id><published>2015-12-17T08:32:00.001-05:00</published><updated>2015-12-17T08:32:32.081-05:00</updated><title type='text'>To create an empty branch from master - local and remote</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;







&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git checkout --orphan&amp;nbsp; EmptyBranch&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git rm -rf .&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git commit --allow-empty -m &quot;initial commit&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git push -u origin EmptyBranch&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/3600160078847567182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/12/to-create-empty-branch-from-master.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3600160078847567182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3600160078847567182'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/12/to-create-empty-branch-from-master.html' title='To create an empty branch from master - local and remote'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-1723469639354259245</id><published>2015-12-11T15:11:00.001-05:00</published><updated>2015-12-11T15:11:45.559-05:00</updated><title type='text'>Clash of Gradle classes for different versionsin #Android Studio - inactive functions</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
If your gradle path in Project Properties is pointing to one version of gradle like gradle 2.4&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
And the gradle wrapper file, gradle-wrapper.properties&lt;br /&gt;
in gradle/wrapper folder&lt;br /&gt;
&lt;br /&gt;
distributionBase=GRADLE_USER_HOME&lt;br /&gt;
distributionPath=wrapper/dists&lt;br /&gt;
zipStoreBase=GRADLE_USER_HOME&lt;br /&gt;
zipStorePath=wrapper/dists&lt;br /&gt;
distributionUrl=https\://services.gradle.org/distributions/gradle-2.8-all.zip&lt;br /&gt;
&lt;br /&gt;
there will be clash.&lt;br /&gt;
&lt;br /&gt;
Result- You will not be able to see active gradle function links in build.gradle.&lt;br /&gt;
&lt;br /&gt;
buildscript {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; repositories {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; jcenter()&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; dependencies {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; classpath &#39;com.android.tools.build:gradle:1.3.0&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; classpath &#39;org.robolectric:robolectric-gradle-plugin:0.14.+&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; classpath &#39;com.jakewharton.hugo:hugo-plugin:1.1.0&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
If you Press Command+ Mouse Over on &quot;buildscript&quot; in build.gradle, you will not see an active link.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/1723469639354259245/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/12/clash-of-gradle-classes-for-different.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/1723469639354259245'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/1723469639354259245'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/12/clash-of-gradle-classes-for-different.html' title='Clash of Gradle classes for different versionsin #Android Studio - inactive functions'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-7132489506591269463</id><published>2015-12-10T19:58:00.000-05:00</published><updated>2015-12-16T11:49:42.776-05:00</updated><title type='text'>Some Flume Configurations</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;FLUME_LOG_DIR=/var/log/flume-ng&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;FLUME_CONF_DIR=/etc/flume-ng/conf_${FLUME_AGENT_NAME}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;FLUME_RUN_DIR=/var/run/flume-ng&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;FLUME_HOME=/usr/lib/flume-ng&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;Starting flume in background&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;nohup flume-ng agent -n CollectionFlume -c conf -f conf/flume-conf.properties &amp;gt; /dev/null 2&amp;gt;&amp;amp;1 &amp;amp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;or better&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: helvetica, arial, nimbussansl, liberationsans, freesans, clean, sans-serif, apple color emoji, segoe ui emoji, segoe ui symbol;&quot;&gt;&amp;nbsp;&quot;nohup /opt/cloudera/parcels/CDH/lib/flume-ng/bin/flume-ng agent -c /opt/cloudera/parcels/CDH/lib/flume-ng/conf -f /opt/cloudera/parcels/CDH/lib/flume-ng/conf/flume-conf.properties -n agent &amp;gt;/dev/null 2&amp;gt;&amp;amp;1 &quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;Process&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;







&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ps auxwww|grep -i &#39;flume-ng&#39;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;color: #333333; font-family: &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , &amp;quot;nimbussansl&amp;quot; , &amp;quot;liberationsans&amp;quot; , &amp;quot;freesans&amp;quot; , &amp;quot;clean&amp;quot; , sans-serif , &amp;quot;apple color emoji&amp;quot; , &amp;quot;segoe ui emoji&amp;quot; , &amp;quot;segoe ui symbol&amp;quot;;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 13px; line-height: 18.2px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/7132489506591269463/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/12/some-flume-configurations.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7132489506591269463'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7132489506591269463'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/12/some-flume-configurations.html' title='Some Flume Configurations'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-5571904843452297977</id><published>2015-09-29T02:10:00.001-04:00</published><updated>2015-09-29T02:39:32.189-04:00</updated><title type='text'>Helllo World In #Erlang on Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Store&lt;br /&gt;
&lt;br /&gt;
-module(hello).&lt;br /&gt;
-export([hello_world/0]).&lt;br /&gt;
hello_world() -&amp;gt; io:fwrite(&quot;hello, world\n&quot;).&lt;br /&gt;
&lt;br /&gt;
in a hello.erl file. You can use Sublime as an editor.&lt;br /&gt;
[hello_world/0] means function hello_world with zero argument.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Compile the file&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;erl -compile hello&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Open the Erlang Terminal&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;erl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;You can also compile the program in terminal by&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;c(hello) compiles the file hello.erl&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;Run the program&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;hello:hello_world().&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Output:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;hello, world&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ok&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;To shut a system down cleanly, use&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;code&quot; style=&quot;background-color: white; font-family: Courier, monospace;&quot;&gt;init:stop().&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;code&quot; style=&quot;background-color: white; font-family: Courier, monospace;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;Some quick ways are evaluating&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;code&quot;&gt;halt().&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;or&amp;nbsp;c&lt;/span&gt;&lt;span class=&quot;code&quot;&gt;ontrol+\&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span class=&quot;code&quot; style=&quot;background-color: white; font-family: Courier, monospace;&quot;&gt;&lt;span class=&quot;code&quot;&gt;control+C&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;a&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp;give you access to menus.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/5571904843452297977/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/09/helllo-world-in-erlang-on-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5571904843452297977'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5571904843452297977'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/09/helllo-world-in-erlang-on-mac.html' title='Helllo World In #Erlang on Mac'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-913249394497523003</id><published>2015-09-29T02:03:00.000-04:00</published><updated>2015-09-29T02:03:29.368-04:00</updated><title type='text'>Installing #Erlang on mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;brew install erlang&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing dependencies for erlang: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;openssl, unixodbc, jpeg, libpng,&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;openssl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2d_1.yosemite.b&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring openssl-1.0.2d_1.yosemite.bottle.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Caveats&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;A CA file has been bootstrapped using certificates from the system&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;keychain. To add additional certificates, place .pem files in&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; /usr/local/etc/openssl/certs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;and run&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; /usr/local/opt/openssl/bin/c_rehash&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;This formula is keg-only, which means it was not symlinked into /usr/local.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Generally there are no consequences of this for you. If you build your&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;own software and it requires this formula, you&#39;ll need to add to your&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;build variables:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; LDFLAGS:&amp;nbsp; -L/usr/local/opt/openssl/lib&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; CPPFLAGS: -I/usr/local/opt/openssl/include&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Summary&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/openssl/1.0.2d_1: 464 files, 18M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;unixodbc&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/unixodbc-2.3.2_1.yosemite.b&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring unixodbc-2.3.2_1.yosemite.bottle.1.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/unixodbc/2.3.2_1: 31 files, 1.0M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;jpeg&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/jpeg-8d.yosemite.bottle.2.t&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring jpeg-8d.yosemite.bottle.2.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/jpeg/8d: 18 files, 776K&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;libpng&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/libpng-1.6.18.yosemite.bott&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring libpng-1.6.18.yosemite.bottle.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/libpng/1.6.18: 17 files, 1.2M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;libtiff&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/libtiff-4.0.6.yosemite.bott&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring libtiff-4.0.6.yosemite.bottle.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/libtiff/4.0.6: 259 files, 3.9M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing erlang dependency: &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;wxmac&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/wxmac-3.0.2.yosemite.bottle&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring wxmac-3.0.2.yosemite.bottle.11.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/wxmac/3.0.2: 777 files, 41M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Installing &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;erlang&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Downloading https://homebrew.bintray.com/bottles/erlang-18.1.yosemite.bottle&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Pouring erlang-18.1.yosemite.bottle.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Caveats&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Man pages can be found in:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; /usr/local/opt/erlang/lib/erlang/man&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Access them with `erl -man`, or add this directory to MANPATH.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;==&amp;gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; Summary&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/erlang/18.1: 7465 files, 287M&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/913249394497523003/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/09/installing-erlang-on-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/913249394497523003'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/913249394497523003'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/09/installing-erlang-on-mac.html' title='Installing #Erlang on mac'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-6686783893744846947</id><published>2015-07-13T14:11:00.000-04:00</published><updated>2016-01-28T20:15:33.232-05:00</updated><title type='text'>Useful commands - ADB and other</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
ADB commands:&lt;br /&gt;
&lt;br /&gt;
To list sdk packages&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;android list sdk &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;all&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;android update sdk -u -a -t &lt;version&gt;&lt;/version&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
logcat current package thread-&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;adb logcat | grep `adb shell ps | grep -E u0&lt;uid&gt;&lt;uid current=&quot;&quot; of=&quot;&quot; user=&quot;&quot;&gt;.*com.package.name&lt;package_name&gt;&amp;nbsp;&lt;package name=&quot;&quot;&gt;| awk &#39;{print $2}&#39;`&lt;/package&gt;&lt;/package_name&gt;&lt;/uid&gt;&lt;/uid&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
print UID of app&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;adb shell dumpsys package com.sandeep.app | grep userId=&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
enable wifi -&lt;br /&gt;
adb shell svc wifi enable&lt;br /&gt;
&lt;br /&gt;
command to kill an app from adb&lt;br /&gt;
&lt;span style=&quot;background-color: #eeeeee; color: #222222; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;lucida console&amp;quot; , &amp;quot;liberation mono&amp;quot; , &amp;quot;dejavu sans mono&amp;quot; , &amp;quot;bitstream vera sans mono&amp;quot; , &amp;quot;courier new&amp;quot; , monospace , sans-serif; font-size: 13px; line-height: 16.9px; white-space: pre-wrap;&quot;&gt;adb shell ps | grep com.app.sandeep | awk &#39;{print $2}&#39; | xargs adb shell kill&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
version of app installed&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;adb shell dumpsys &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; grep &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;A18 &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;&quot;Package \[com.sandeep.packageName\]&quot;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
disable wifi -&lt;br /&gt;
adb shell svc wifi disable&lt;br /&gt;
&lt;br /&gt;
if you are using volley in your application for http request&lt;br /&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;adb &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;s &quot;deviceID&quot;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;&lt;device_id&gt;&lt;/device_id&gt;&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; shell setprop log&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;tag&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;Volley&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; VERBOSE&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222426; font-family: Arial, &#39;Helvetica Neue&#39;, Helvetica, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
LCD density is in the build.prop:&lt;/div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;adb shell getprop ro&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;sf&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;lcd_density&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border: 0px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;adb shell wm size
Physical size: 1080x1920&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
Launch settings -&lt;br /&gt;
adb shell am start -a android.intent.action.MAIN -n com.android.settings/.Settings&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: #e0eaf3; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;To find location of package in android&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #e0eaf3; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;adb shell pm path&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
send intent&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;adb shell am broadcast -a &lt;action_name&gt; -c &lt;category_name&gt; --ei &lt;extra_key_name&gt; &lt;extra_int_value&gt;&amp;nbsp;&lt;/extra_int_value&gt;&lt;/extra_key_name&gt;&lt;/category_name&gt;&lt;/action_name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;intent&gt; specifications include these flags and arguments:&lt;/intent&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-a &lt;action&gt;] [-d &lt;data_uri&gt;] [-t &lt;mime_type&gt;]&lt;/mime_type&gt;&lt;/data_uri&gt;&lt;/action&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-c &lt;category&gt; [-c &lt;category&gt;] ...]&lt;/category&gt;&lt;/category&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-e|--es &lt;extra_key&gt; &lt;extra_string_value&gt; ...]&lt;/extra_string_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--esn &lt;extra_key&gt; ...]&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ez &lt;extra_key&gt; &lt;extra_boolean_value&gt; ...]&lt;/extra_boolean_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ei &lt;extra_key&gt; &lt;extra_int_value&gt; ...]&lt;/extra_int_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--el &lt;extra_key&gt; &lt;extra_long_value&gt; ...]&lt;/extra_long_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ef &lt;extra_key&gt; &lt;extra_float_value&gt; ...]&lt;/extra_float_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--eu &lt;extra_key&gt; &lt;extra_uri_value&gt; ...]&lt;/extra_uri_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ecn &lt;extra_key&gt; &lt;extra_component_name_value&gt;]&lt;/extra_component_name_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--eia &lt;extra_key&gt; &lt;extra_int_value&gt;[,&lt;extra_int_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_int_value&gt;&lt;/extra_int_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ela &lt;extra_key&gt; &lt;extra_long_value&gt;[,&lt;extra_long_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_long_value&gt;&lt;/extra_long_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--efa &lt;extra_key&gt; &lt;extra_float_value&gt;[,&lt;extra_float_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_float_value&gt;&lt;/extra_float_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--esa &lt;extra_key&gt; &lt;extra_string_value&gt;[,&lt;extra_string_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_string_value&gt;&lt;/extra_string_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;(to embed a comma into a string escape it using &quot;\,&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Different application manager commands:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am start [-D] [-W] [-P &lt;file&gt;] [--start-profiler &lt;file&gt;]&lt;/file&gt;&lt;/file&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [--sampling INTERVAL] [-R COUNT] [-S] [--opengl-trace]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [--user &lt;user_id&gt; | current] &lt;intent&gt;&lt;/intent&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am startservice [--user &lt;user_id&gt; | current] &lt;intent&gt;&lt;/intent&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stopservice [--user &lt;user_id&gt; | current] &lt;intent&gt;&lt;/intent&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am force-stop [--user &lt;user_id&gt; | all | current] &lt;package&gt;&lt;/package&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am kill [--user &lt;user_id&gt; | all | current] &lt;package&gt;&lt;/package&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am kill-all&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am broadcast [--user &lt;user_id&gt; | all | current] &lt;intent&gt;&lt;/intent&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am instrument [-r] [-e &lt;name&gt; &lt;value&gt;] [-p &lt;file&gt;] [-w]&lt;/file&gt;&lt;/value&gt;&lt;/name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [--user &lt;user_id&gt; | current]&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [--no-window-animation] [--abi &lt;abi&gt;] &lt;component&gt;&lt;/component&gt;&lt;/abi&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am profile start [--user &lt;user_id&gt; current] &lt;process&gt; &lt;file&gt;&lt;/file&gt;&lt;/process&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am profile stop [--user &lt;user_id&gt; current] [&lt;process&gt;]&lt;/process&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am dumpheap [--user &lt;user_id&gt; current] [-n] &lt;process&gt; &lt;file&gt;&lt;/file&gt;&lt;/process&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am set-debug-app [-w] [--persistent] &lt;package&gt;&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am clear-debug-app&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am monitor [--gdb &lt;port&gt;]&lt;/port&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am hang [--allow-restart]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am restart&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am idle-maintenance&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am screen-compat [on|off] &lt;package&gt;&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am to-uri [INTENT]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am to-intent-uri [INTENT]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am switch-user &lt;user_id&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am start-user &lt;user_id&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stop-user &lt;user_id&gt;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stack start &lt;display_id&gt; &lt;intent&gt;&lt;/intent&gt;&lt;/display_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stack movetask &lt;task_id&gt; &lt;stack_id&gt; [true|false]&lt;/stack_id&gt;&lt;/task_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stack resize &lt;stack_id&gt; &lt;left&gt;&lt;/left&gt;&lt;/stack_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stack list&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am stack info &lt;stack_id&gt;&lt;/stack_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am lock-task &lt;task_id&gt;&lt;/task_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am lock-task stop&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; am get-config&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am start: start an Activity.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -D: enable debugging&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -W: wait for launch to complete&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --start-profiler &lt;file&gt;: start profiler and send results to &lt;file&gt;&lt;/file&gt;&lt;/file&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --sampling INTERVAL: use sample profiling with INTERVAL microseconds&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; between samples (use with --start-profiler)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -P &lt;file&gt;: like above, but profiling stops when app goes idle&lt;/file&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -R: repeat the activity launch &lt;count&gt; times.&amp;nbsp; Prior to each repeat,&lt;/count&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; the top activity will be finished.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -S: force stop the target app before starting the activity&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --opengl-trace: enable tracing of OpenGL functions&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: Specify which user to run as; if not&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specified then run as the current user.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am startservice: start a Service.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: Specify which user to run as; if not&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specified then run as the current user.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stopservice: stop a Service.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: Specify which user to run as; if not&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specified then run as the current user.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am force-stop: force stop everything associated with &lt;package&gt;.&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | all | current: Specify user to force stop;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all users if not specified.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am kill: Kill all processes associated with &lt;package&gt;.&amp;nbsp; Only kills.&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; processes that are safe to kill -- that is, will not impact the user&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; experience.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | all | current: Specify user whose processes to kill;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all users if not specified.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am kill-all: Kill all background processes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am broadcast: send a broadcast Intent.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | all | current: Specify which user to send to; if not&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specified then send to all users.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --receiver-permission &lt;permission&gt;: Require receiver to hold permission.&lt;/permission&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am instrument: start an Instrumentation.&amp;nbsp; Typically this target &lt;component&gt;&lt;/component&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; is the form &lt;test_package&gt;/&lt;runner_class&gt;.&amp;nbsp; Options are:&lt;/runner_class&gt;&lt;/test_package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -r: print raw results (otherwise decode REPORT_KEY_STREAMRESULT).&amp;nbsp; Use with&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [-e perf true] to generate raw output for performance measurements.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -e &lt;name&gt; &lt;value&gt;: set argument &lt;name&gt; to &lt;value&gt;.&amp;nbsp; For test runners a&lt;/value&gt;&lt;/name&gt;&lt;/value&gt;&lt;/name&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; common form is [-e &lt;testrunner_flag&gt; &lt;value&gt;[,&lt;value&gt;...]].&lt;/value&gt;&lt;/value&gt;&lt;/testrunner_flag&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -p &lt;file&gt;: write profiling data to &lt;file&gt;&lt;/file&gt;&lt;/file&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -w: wait for instrumentation to finish before returning.&amp;nbsp; Required for&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; test runners.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: Specify user instrumentation runs in;&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; current user if not specified.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --no-window-animation: turn off window animations while running.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --abi &lt;abi&gt;: Launch the instrumented process with the selected ABI.&lt;/abi&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; This assumes that the process supports the selected ABI.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am profile: start and stop profiler on a process.&amp;nbsp; The given &lt;process&gt; argument&lt;/process&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; may be either a process name or pid.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: When supplying a process name,&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specify user of process to profile; uses current user if not specified.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am dumpheap: dump the heap of a process.&amp;nbsp; The given &lt;process&gt; argument may&lt;/process&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; be either a process name or pid.&amp;nbsp; Options are:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -n: dump native heap instead of managed heap&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --user &lt;user_id&gt; | current: When supplying a process name,&lt;/user_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; specify user of process to dump; uses current user if not specified.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am set-debug-app: set application &lt;package&gt; to debug.&amp;nbsp; Options are:&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; -w: wait for debugger when application starts&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --persistent: retain this value&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am clear-debug-app: clear the previously set-debug-app.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am bug-report: request bug report generation; will launch UI&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; when done to select where it should be delivered.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am monitor: start monitoring for crashes or ANRs.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --gdb: start gdbserv on the given port at crash/ANR&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am hang: hang the system.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; --allow-restart: allow watchdog to perform normal system restart&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am restart: restart the user-space system.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am idle-maintenance: perform idle maintenance now.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am screen-compat: control screen compatibility mode of &lt;package&gt;.&lt;/package&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am to-uri: print the given Intent specification as a URI.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am to-intent-uri: print the given Intent specification as an intent: URI.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am switch-user: switch to put USER_ID in the foreground, starting&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; execution of that user if it is currently stopped.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am start-user: start USER_ID in background if it is currently stopped,&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; use switch-user if you want to start the user in foreground.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stop-user: stop execution of USER_ID, not allowing it to run any&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; code until a later explicit start or switch to it.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stack start: start a new activity on &lt;display_id&gt; using &lt;intent&gt;.&lt;/intent&gt;&lt;/display_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stack movetask: move &lt;task_id&gt; from its current stack to the top (true) or &amp;nbsp; bottom (false) of &lt;stack_id&gt;.&lt;/stack_id&gt;&lt;/task_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stack resize: change &lt;stack_id&gt; size and position to &lt;left&gt;.&lt;/left&gt;&lt;/stack_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stack list: list all of the activity stacks and their sizes.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am stack info: display the information about activity stack &lt;stack_id&gt;.&lt;/stack_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am lock-task: bring &lt;task_id&gt; to the front and don&#39;t allow other tasks to run&lt;/task_id&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;am get-config: retrieve the configuration and any recent configurations&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; of the device&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;intent&gt; specifications include these flags and arguments:&lt;/intent&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-a &lt;action&gt;] [-d &lt;data_uri&gt;] [-t &lt;mime_type&gt;]&lt;/mime_type&gt;&lt;/data_uri&gt;&lt;/action&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-c &lt;category&gt; [-c &lt;category&gt;] ...]&lt;/category&gt;&lt;/category&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[-e|--es &lt;extra_key&gt; &lt;extra_string_value&gt; ...]&lt;/extra_string_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--esn &lt;extra_key&gt; ...]&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ez &lt;extra_key&gt; &lt;extra_boolean_value&gt; ...]&lt;/extra_boolean_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ei &lt;extra_key&gt; &lt;extra_int_value&gt; ...]&lt;/extra_int_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--el &lt;extra_key&gt; &lt;extra_long_value&gt; ...]&lt;/extra_long_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ef &lt;extra_key&gt; &lt;extra_float_value&gt; ...]&lt;/extra_float_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--eu &lt;extra_key&gt; &lt;extra_uri_value&gt; ...]&lt;/extra_uri_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ecn &lt;extra_key&gt; &lt;extra_component_name_value&gt;]&lt;/extra_component_name_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--eia &lt;extra_key&gt; &lt;extra_int_value&gt;[,&lt;extra_int_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_int_value&gt;&lt;/extra_int_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--ela &lt;extra_key&gt; &lt;extra_long_value&gt;[,&lt;extra_long_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_long_value&gt;&lt;/extra_long_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--efa &lt;extra_key&gt; &lt;extra_float_value&gt;[,&lt;extra_float_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_float_value&gt;&lt;/extra_float_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[--esa &lt;extra_key&gt; &lt;extra_string_value&gt;[,&lt;extra_string_value ...=&quot;&quot; span=&quot;&quot;&gt;&lt;/extra_string_value&gt;&lt;/extra_string_value&gt;&lt;/extra_key&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;(to embed a comma into a string escape it using &quot;\,&quot;)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [-n &lt;component&gt;] [-f &lt;flags&gt;]&lt;/flags&gt;&lt;/component&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--grant-read-uri-permission] [--grant-write-uri-permission]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--grant-persistable-uri-permission] [--grant-prefix-uri-permission]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--debug-log-resolution] [--exclude-stopped-packages]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--include-stopped-packages]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-brought-to-front] [--activity-clear-top]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-clear-when-task-reset] [--activity-exclude-from-recents]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-launched-from-history] [--activity-multiple-task]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-no-animation] [--activity-no-history]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-no-user-action] [--activity-previous-is-top]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-reorder-to-front] [--activity-reset-task-if-needed]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-single-top] [--activity-clear-task]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--activity-task-on-home]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--receiver-registered-only] [--receiver-replace-pending]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; [--selector]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;




























































































































































































&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;[&lt;uri&gt; | &lt;package&gt; | &lt;component&gt;]&lt;/component&gt;&lt;/package&gt;&lt;/uri&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
Location of java sdk on Mac:&lt;br /&gt;
ls&amp;nbsp;&lt;span style=&quot;background-color: #e0eaf3; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;/Library/Java/JavaVirtualMachines/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: #e0eaf3; color: #333333; font-family: &amp;quot;helvetica neue&amp;quot; , &amp;quot;helvetica&amp;quot; , &amp;quot;arial&amp;quot; , sans-serif; font-size: 14px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/6686783893744846947/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/07/useful-commands.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6686783893744846947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6686783893744846947'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/07/useful-commands.html' title='Useful commands - ADB and other'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-8392973897734940102</id><published>2015-07-09T04:56:00.002-04:00</published><updated>2015-07-13T10:58:31.205-04:00</updated><title type='text'>Installing #Oracle #Weblogic server on Mac</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;Download Generic weblogic server installer from&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;http://www.oracle.com/technetwork/middleware/weblogic/downloads/&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;Installation command for downloaded jar -&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;java -d64 -Dspace.detection=false -Xmx1024m -jar fmw_12.1.3.0.0_wls.jar&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;For starter, select everything default.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;Installed Domains-&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: proxima-nova-1, proxima-nova-2, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;ls ~/Oracle/Middleware/Oracle_Home/user_projects/domains/&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: proxima-nova-1, proxima-nova-2, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: proxima-nova-1, proxima-nova-2, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Start the domain server-&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: proxima-nova-1, proxima-nova-2, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;cd&amp;nbsp;&lt;/span&gt;&lt;/span&gt;/Users/sandeepshabd/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server&lt;br /&gt;
./startWebLogic.sh&amp;nbsp;&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri, sans-serif; font-size: 14.6666669845581px; line-height: 16.8666667938232px; text-align: justify; text-indent: -24px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Calibri, sans-serif; font-size: 14.6666669845581px; line-height: 16.8666667938232px; text-align: justify; text-indent: -24px;&quot;&gt;-Xrs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;If Exception comes:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;







&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Caused By: java.net.UnknownHostException: hello: nodename nor servname provided, or not known&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;edit host file at&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 25px;&quot;&gt;/private/etc/ for all named localhost&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: Georgia, &#39;Times New Roman&#39;, Times, serif; font-size: 14px; line-height: 25px;&quot;&gt;127.0.0.1 &amp;nbsp; &amp;nbsp; hello&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Also, remove any strange IP address, if present like&lt;br /&gt;
:::1 &amp;nbsp; &amp;nbsp; localhost&lt;br /&gt;
&lt;br /&gt;
127.0.0.1 &amp;nbsp; localhost is ok. DO not remove that.&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;If configurations has to be changed -&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;







&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;cd &amp;nbsp;~/Oracle/Middleware/Oracle_Home/wlserver/common/bin&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;./config.sh&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;Eclipse Preferences -&amp;gt; Server -&amp;gt; Installed Runtimes -&amp;gt; Add... -&amp;gt; Download additional server adapters&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;Once downloaded, select the adapter for the installed version of weblogic.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: proxima-nova-1, proxima-nova-2, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
Server logs at&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;cd ~/Oracle/Middleware/Oracle_Home/user_projects/domains/wl_server/servers/AdminServer/logs&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/8392973897734940102/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/07/installing-weblogic-server-on-mac.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/8392973897734940102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/8392973897734940102'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/07/installing-weblogic-server-on-mac.html' title='Installing #Oracle #Weblogic server on Mac'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-7694674229087440281</id><published>2015-07-08T22:08:00.001-04:00</published><updated>2015-07-08T23:36:48.611-04:00</updated><title type='text'>JMS and Advanced Queuing Protocol - Searched from Internet</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;From Stackoverflow:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;The Java Message Service&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;(JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;. JMS is a part of the Java Platform, Enterprise Edition, and is defined by a specification developed under the Java Community Process as JSR 914.&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;It is a messaging standard that allows application components based on the Java Enterprise Edition (Java EE) to create, send, receive, and read messages. It allows the communication between different components of a distributed application to be loosely coupled, reliable, and asynchronous&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;(From WIKI).&lt;/span&gt;&lt;br /&gt;
&lt;em style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;Now&lt;/em&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;The Advanced Message Queuing Protocol (AMQP)&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;is an open standard application layer protocol for message-oriented middleware. The defining features of AMQP are message orientation, queuing, routing (including point-to-point and publish-and-subscribe), reliability and security&lt;/code&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;And the most important thing&lt;/span&gt;&lt;br /&gt;
&lt;code style=&quot;background-color: #eeeeee; border: 0px; color: #222222; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;Unlike JMS, which merely defines an API, AMQP is a wire-level protocol. A wire-level protocol is a description of the format of the data that is sent across the network as a stream of octets. Consequently any tool that can create and interpret messages that conform to this data format can interoperate with any other compliant tool irrespective of implementation language&lt;/code&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;(From WIKI).&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot; /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;Some imp things you should know&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;1:&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;Keep in mind that AMQP is a Messaging technologies that do not implement the JMS API.&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;2:&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;JMS is API and AMQP is a protocol.So it doesn&#39;t make sense to say that what is default protocol of JMS , Ofcourse client applications use HTTP/S as the connection protocol when invoking a WebLogic Web Service.&lt;/span&gt;&lt;br /&gt;
&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;3:&lt;/strong&gt;&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&amp;nbsp;JMS is only a API spec. It doesnt use any protocol. A JMS provider (like ActiveMQ) could be using any underlying protocol to realize the JMS API. For ex: Apache ActiveMQ can use any of the following protocols: AMQP, MQTT, OpenWire, REST(HTTP), RSS and Atom, Stomp, WSIF, WS Notification, XMPP&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px;&quot;&gt;List of MQTT broker:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;https://github.com/mqtt/mqtt.github.io/wiki/servers&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;(Extract from&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 15px; line-height: 19.5px;&quot;&gt;http://activemq.apache.org/weblogic-integration.html )&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
&lt;strong&gt;WebLogic 9.2&lt;/strong&gt;&amp;nbsp;and above are known to support JMS 1.1. (I don&#39;t know what JMS release WebLogic 9.0-9.1 support)&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
To work with ActiveMQ in one of these release of WebLogic Server, you can use the J2EE Connector included with ActiveMQ (known as ActiveMQ-RA). This will provide full ActiveMQ support to J2EE applications – ActiveMQ can be used to both send messages and to deliver incoming messages to message-driven beans. Your J2EE applications can map connection factory and destination references in JNDI.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
&lt;em&gt;I don&#39;t have an example of using the J2EE Connector from a J2EE 1.4 application in WebLogic. If someone can contribute one that would be great!&lt;/em&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
If you&#39;re using Spring or another non-J2EE architecture in your application, you may choose to skip the J2EE Connector and just connect directly to ActiveMQ using the technique described in the next section.&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
On the surface it&#39;s not obvious why you might want to run an ActiveMQ broker within WebLogic instead of standalone, but the considerations include:&lt;/div&gt;
&lt;ul style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 5px; margin-left: 15px; margin-top: 5px; padding: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: url(http://activemq.apache.org/images/small-bullet-red.png);&quot;&gt;When ActiveMQ is run within WebLogic, it can be deployed, started, stopped, and redeployed like other applications, using the WebLogic console or other tools, while the JVM and WebLogic are still running&lt;/li&gt;
&lt;li style=&quot;list-style-image: url(http://activemq.apache.org/images/small-bullet-red.png);&quot;&gt;ActiveMQ can hook into the WebLogic JMX management system (as well as e.g. JRockit) to provide a single management interface to the app server, applications, ActiveMQ, and even the JVM.&lt;/li&gt;
&lt;li style=&quot;list-style-image: url(http://activemq.apache.org/images/small-bullet-red.png);&quot;&gt;ActiveMQ can leverage WebLogic security realms for authentication and authorization – not only are there more security realm types available for WebLogic, but they&#39;re also easier to configure via the WebLogic console&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: verdana, arial, helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;font-size: 12px; line-height: 20px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 12px; line-height: 20px; margin-bottom: 5px; margin-left: 15px; margin-top: 5px; padding: 0px;&quot;&gt;
&lt;li style=&quot;list-style-image: url(http://activemq.apache.org/images/small-bullet-red.png);&quot;&gt;&lt;strong&gt;Using the ActiveMQ-RA J2EE Connector&lt;/strong&gt;&amp;nbsp;– ActiveMQ provides a J2EE Connector that is normally used by clients to connect to a separate ActiveMQ broker. However, the J2EE Connector accepts arguments to run an embedded broker and provide the location of an XML config file for an embedded broker. This is probably the best way to deploy an ActiveMQ broker in WebLogic Server, because ActiveMQ then has access to WebLogic thread pools and other resources.&lt;/li&gt;
&lt;li style=&quot;list-style-image: url(http://activemq.apache.org/images/small-bullet-red.png);&quot;&gt;&lt;strong&gt;Deploying an ActiveMQ Broker as a WebLogic Application&lt;/strong&gt;&amp;nbsp;– This is the technique described below for WebLogic Express. It works equally well in WebLogic Server.&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;h4 id=&quot;WebLogicIntegration-ActiveMQasaWebLogicApplication&quot; style=&quot;background-color: white; border-bottom-color: rgb(192, 192, 192); border-bottom-style: solid; border-bottom-width: 1px; font-family: Georgia, &#39;Times New Roman&#39;, serif; font-size: 15px; margin: 18px 0px 4px -10px; padding: 2px;&quot;&gt;
ActiveMQ as a WebLogic Application&lt;/h4&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
The easiest type of WebLogic application to configure with all the needed ActiveMQ libraries and configuration and not much else is a web application. The JARs go in&amp;nbsp;&lt;code&gt;WEB-INF/lib/&lt;/code&gt;&amp;nbsp;and config files typically in&amp;nbsp;&lt;code&gt;WEB-INF/&lt;/code&gt;. The only necessary configuration for the web application itself is to install a listener that will start and stop ActiveMQ when the web application is started and stopped. There are also a couple optional classes that can be used to integrate ActiveMQ with WebLogic&#39;s security system. Additionally, in this example, a simple web page included in the WAR will be available whenever ActiveMQ is running, so a simple HTTP request can determine whether the ActiveMQ module has been started.&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; font-family: verdana, arial, helvetica, sans-serif; font-size: 14px; line-height: 20px; margin-top: 10px; padding: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-size: 15px; line-height: 19.5px;&quot;&gt;&lt;span style=&quot;color: #222222; font-family: Helvetica Neue, Helvetica, Arial, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/7694674229087440281/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/07/jms-and-advanced-queuing-protocol.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7694674229087440281'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/7694674229087440281'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/07/jms-and-advanced-queuing-protocol.html' title='JMS and Advanced Queuing Protocol - Searched from Internet'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-4286298930656011880</id><published>2015-07-07T21:26:00.002-04:00</published><updated>2015-08-03T18:45:59.582-04:00</updated><title type='text'>Install #mosquitto on mac using #homebrew and related commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ brew install mosquitto&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Installing dependencies for mosquitto: &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;c-ares, openssl, libwebsockets&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Installing mosquitto dependency: &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;c-ares&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Downloading https://homebrew.bintray.com/bottles/c-ares-1.10.0.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Pouring c-ares-1.10.0.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/c-ares/1.10.0: 57 files, 540K&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Installing mosquitto dependency: &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;openssl&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2c.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Pouring openssl-1.0.2c.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Caveats&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;A CA file has been bootstrapped using certificates from the system&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;keychain. To add additional certificates, place .pem files in&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; /usr/local/etc/openssl/certs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;and run&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; /usr/local/opt/openssl/bin/c_rehash&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;This formula is keg-only, which means it was not symlinked into /usr/local.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;OS X already provides this software and installing another version in&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;parallel can cause all kinds of trouble.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Generally there are no consequences of this for you. If you build your&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;own software and it requires this formula, you&#39;ll need to add to your&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;build variables:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; LDFLAGS:&amp;nbsp; -L/usr/local/opt/openssl/lib&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; CPPFLAGS: -I/usr/local/opt/openssl/include&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Summary&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/openssl/1.0.2c: 463 files, 18M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Installing mosquitto dependency: &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;libwebsockets&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Downloading https://homebrew.bintray.com/bottles/libwebsockets-1.4.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Pouring libwebsockets-1.4.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/libwebsockets/1.4: 23 files, 3.3M&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Installing &lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;mosquitto&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Downloading https://homebrew.bintray.com/bottles/mosquitto-1.4.2.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;######################################################################## 100.0%&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Pouring mosquitto-1.4.2.yosemite.bottle.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Caveats&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;mosquitto has been installed with a default configuration file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;You can make changes to the configuration by editing:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; /usr/local/etc/mosquitto/mosquitto.conf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;To have launchd start mosquitto at login:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; ln -sfv /usr/local/opt/mosquitto/*.plist ~/Library/LaunchAgents&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Then to load mosquitto now:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mosquitto.plist&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Or, if you don&#39;t want/need launchctl, you can just run:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;b&gt;==&amp;gt;&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&lt;b&gt; Summary&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;🍺&amp;nbsp; /usr/local/Cellar/mosquitto/1.4.2: 28 files, 700K&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;To run Mosquitto:&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;/usr/local/sbin/mosquitto -c /usr/local/etc/mosquitto/mosquitto.conf&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;Installing mosquitto on ubuntu&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;sudo apt-get install&amp;nbsp;&lt;/span&gt;mosquitto&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;In another tab&amp;nbsp;&lt;/span&gt;Subscribe , with verbose and debug mode&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;mosquitto_sub -v -d -h localhost -t sandeep&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;In another tab Pusblish&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;mosquitto_pub -d -h localhost -t sandeep -m &quot;Up and Running&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;You will see subscribe received message&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Up and Running&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;Running mosquitto process on port 1883&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;ps -ef | grep mosq &amp;amp;&amp;amp; netstat -tln | grep 1883&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;client id - &amp;nbsp;default&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white;&quot;&gt;name.hostname&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;cmdsynopsis&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-left: 30px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;cmdsynopsis&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: black; font-family: Times; font-size: medium; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-left: 30px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px;&quot;&gt;
&lt;code class=&quot;command&quot;&gt;mosquitto_sub&lt;/code&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;-1&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-A&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;bind_address&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-c&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-d&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-h&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;hostname&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-i&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;client_id&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-I&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;client id prefix&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-k&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;keepalive time&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-p&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;port number&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-q&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;message QoS&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-R&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-S&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-N&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;--quiet&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-v&lt;/code&gt;] [ [&lt;code class=&quot;option&quot;&gt;-u&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;username&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-P&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;] ] [&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--will-topic&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;topic&lt;/code&gt;&lt;/em&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;--will-payload&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;payload&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--will-qos&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;qos&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--will-retain&lt;/code&gt;] ] [[ {&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--cafile&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--capath&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;dir&lt;/code&gt;&lt;/em&gt;&amp;nbsp;} [&lt;code class=&quot;option&quot;&gt;--cert&lt;/code&gt;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--key&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--tls-version&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;version&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--insecure&lt;/code&gt;] ] | [&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--psk&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;hex-key&lt;/code&gt;&lt;/em&gt;&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--psk-identity&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;identity&lt;/code&gt;&lt;/em&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;--tls-version&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;version&lt;/code&gt;&lt;/em&gt;] ]] [&lt;code class=&quot;option&quot;&gt;-T&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;filter-out&lt;/code&gt;&lt;/em&gt;...]&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-t&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;message-topic&lt;/code&gt;&lt;/em&gt;...&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div class=&quot;cmdsynopsis&quot; style=&quot;background-color: white; margin-left: 30px;&quot;&gt;
&lt;code class=&quot;command&quot;&gt;mosquitto_pub&lt;/code&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;-A&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;bind_address&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-d&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-h&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;hostname&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-i&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;client_id&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-I&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;client id prefix&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-p&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;port number&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-q&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;message QoS&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--quiet&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-r&lt;/code&gt;] [&lt;code class=&quot;option&quot;&gt;-S&lt;/code&gt;] {&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-f&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-l&lt;/code&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-m&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;message&lt;/code&gt;&lt;/em&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-n&lt;/code&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-s&lt;/code&gt;&amp;nbsp;} [ [&lt;code class=&quot;option&quot;&gt;-u&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;username&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;-P&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;password&lt;/code&gt;&lt;/em&gt;] ] [&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--will-topic&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;topic&lt;/code&gt;&lt;/em&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;--will-payload&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;payload&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--will-qos&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;qos&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--will-retain&lt;/code&gt;] ] [[ {&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--cafile&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;&amp;nbsp;|&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--capath&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;dir&lt;/code&gt;&lt;/em&gt;&amp;nbsp;} [&lt;code class=&quot;option&quot;&gt;--cert&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--key&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;file&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--ciphers&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;ciphers&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--tls-version&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;version&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--insecure&lt;/code&gt;] ] | [&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--psk&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;hex-key&lt;/code&gt;&lt;/em&gt;&amp;nbsp;&lt;code class=&quot;option&quot;&gt;--psk-identity&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;identity&lt;/code&gt;&lt;/em&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;--ciphers&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;ciphers&lt;/code&gt;&lt;/em&gt;] [&lt;code class=&quot;option&quot;&gt;--tls-version&lt;/code&gt;&amp;nbsp;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;version&lt;/code&gt;&lt;/em&gt;] ]]&amp;nbsp;&lt;code class=&quot;option&quot;&gt;-t&lt;/code&gt;&lt;em class=&quot;replaceable&quot;&gt;&lt;code&gt;message-topic&lt;/code&gt;&lt;/em&gt;&lt;/div&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;cmdsynopsis&quot; style=&quot;background-color: white; margin-left: 30px;&quot;&gt;
&lt;code class=&quot;command&quot;&gt;mosquitto_pub&lt;/code&gt;&amp;nbsp;[&lt;code class=&quot;option&quot;&gt;--help&lt;/code&gt;]&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/4286298930656011880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/07/install-mosquitto-on-mac-using-homebrew.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4286298930656011880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4286298930656011880'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/07/install-mosquitto-on-mac-using-homebrew.html' title='Install #mosquitto on mac using #homebrew and related commands'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-8707646200961438705</id><published>2015-06-29T17:46:00.005-04:00</published><updated>2015-07-15T22:51:38.442-04:00</updated><title type='text'> Working with #Genymotion - Some tips</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Kill and Start Genymotion from terminal-&lt;br /&gt;
ps ax | grep &quot;Player.app&quot; | grep -v &quot;grep&quot; | xargs kill&lt;br /&gt;
VBoxManage list vms&lt;br /&gt;
/Applications/Genymotion.app/Contents/MacOS/player --vm-name &lt;name of=&quot;&quot; vm=&quot;&quot;&gt;&lt;/name&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
To access your localhost through Genymotion is using your mac IP address. To get your IP address type on Terminal - &amp;nbsp;ifconfig&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
then search for IPv4, copy the IP and paste it in your URL.&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;For example&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;inet 192.168.1.81&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; border: 0px; clear: both; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin-bottom: 1em; padding: 0px;&quot;&gt;
It should looks like the following:&lt;/div&gt;
&lt;pre class=&quot;default prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;exampleURL&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;&quot;http://&lt;span style=&quot;color: black; font-family: Times; font-size: small; white-space: normal;&quot;&gt;192.168.1.81&lt;/span&gt;:8080/....&quot;&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/8707646200961438705/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/06/commands-to-kill-and-start-genymotion.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/8707646200961438705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/8707646200961438705'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/06/commands-to-kill-and-start-genymotion.html' title=' Working with #Genymotion - Some tips'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-4042680888709832163</id><published>2015-06-22T10:40:00.002-04:00</published><updated>2015-09-30T15:04:02.491-04:00</updated><title type='text'>Git command</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&amp;nbsp;to delete all branched other than master:&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;git branch | grep -v master | xargs git branch -D&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;color: #222222; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: #eeeeee; font-size: 13px; line-height: 19.5px; white-space: pre-wrap;&quot;&gt;&lt;b&gt;to reset master:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;strong style=&quot;background-color: white; border: 0px; color: #222222; font-family: &#39;Helvetica Neue&#39;, Helvetica, Arial, sans-serif; font-size: 15px; line-height: 19.5px; margin: 0px; padding: 0px;&quot;&gt;&lt;code style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 1px 5px; white-space: pre-wrap;&quot;&gt;git reset --hard origin/master&lt;/code&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/4042680888709832163/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/06/git-command-to-delete-all-branched.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4042680888709832163'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4042680888709832163'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/06/git-command-to-delete-all-branched.html' title='Git command'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-2406804927715258583</id><published>2015-06-11T13:19:00.001-04:00</published><updated>2015-06-11T13:40:03.131-04:00</updated><title type='text'>Working with Node.js server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
server.js&lt;br /&gt;
&lt;br /&gt;
var http = require(&#39;http&#39;);&lt;br /&gt;
http.createServer(function (req, res) {&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;var body=&quot;&quot;;&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;req.on(&#39;data&#39;, function (chunk) {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; body += chunk;&lt;br /&gt;
&amp;nbsp; });&lt;br /&gt;
&amp;nbsp; req.on(&#39;end&#39;, function () {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; console.log(&#39;POSTed: &#39; + body);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; res.writeHead(200, {&#39;Content-Type&#39;: &#39;text/plain&#39;});&lt;br /&gt;
&amp;nbsp; &lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;res.end(&#39;success&#39;);&lt;br /&gt;
&amp;nbsp; });&lt;br /&gt;
&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;&lt;br /&gt;
}).listen(1337, &#39;127.0.0.1&#39;);&lt;br /&gt;
console.log(&#39;Server running at http://127.0.0.1:1337/&#39;);&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
node server.js start the server&lt;br /&gt;
&lt;br /&gt;
-------------&lt;br /&gt;
&amp;nbsp;Close the server&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;hello:tcps-service sandeepshabd$ ps aux | grep node&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sandeepshabd&amp;nbsp; &amp;nbsp; 60569 &amp;nbsp; 0.0&amp;nbsp; 0.0&amp;nbsp; 2432772&amp;nbsp; &amp;nbsp; 672 s003&amp;nbsp; S+&amp;nbsp; &amp;nbsp; 1:16PM &amp;nbsp; 0:00.00 grep node&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sandeepshabd&amp;nbsp; &amp;nbsp; 60542 &amp;nbsp; 0.0&amp;nbsp; 0.2&amp;nbsp; 3067496&amp;nbsp; 20056 s001&amp;nbsp; S+&amp;nbsp; &amp;nbsp; 1:11PM &amp;nbsp; 0:00.18 node server.js&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;hello:tcps-service sandeepshabd$ kill -2 60542&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/2406804927715258583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/06/working-with-nodejs-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/2406804927715258583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/2406804927715258583'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/06/working-with-nodejs-server.html' title='Working with Node.js server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-5496703673887287176</id><published>2015-06-11T12:03:00.004-04:00</published><updated>2015-06-11T12:12:48.373-04:00</updated><title type='text'>Proguard change to remove only the log files from android app</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;pre style=&quot;background-color: #2b2b2b; color: #a9b7c6; font-family: &#39;Menlo&#39;; font-size: 12.0pt;&quot;&gt;&lt;span style=&quot;color: #6a8759;&quot;&gt;proguard-rules.pro&lt;/span&gt;&lt;/pre&gt;
-dontwarn **&lt;br /&gt;
-target 1.7&lt;br /&gt;
-dontusemixedcaseclassnames&lt;br /&gt;
-dontskipnonpubliclibraryclasses&lt;br /&gt;
-dontpreverify&lt;br /&gt;
-verbose&lt;br /&gt;
&lt;br /&gt;
-optimizations !code/simplification/arithmetic,!code/allocation/variable&lt;br /&gt;
-keep class **&lt;br /&gt;
-keepclassmembers class *{*;}&lt;br /&gt;
-keepattributes *&lt;br /&gt;
&lt;br /&gt;
#This will not remove error log&lt;br /&gt;
-assumenosideeffects class android.util.Log {&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#&lt;span class=&quot;kwd&quot; style=&quot;background-color: #eeeeee; border: 0px; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;public&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: #eeeeee; border: 0px; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;static&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: #eeeeee; border: 0px; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;boolean&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt; isLoggable&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;java&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;lang&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #2b91af; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;String&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot; style=&quot;background-color: #eeeeee; border: 0px; color: darkblue; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background-color: #eeeeee; border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;);&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static int v(...);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static int i(...);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static int w(...);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; public static int d(...);&lt;br /&gt;
&amp;nbsp; &amp;nbsp;#public static int e(...);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-----------------------------build.gradle ---------------------&lt;br /&gt;
buildTypes {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; release {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; minifyEnabled true&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; proguardFiles getDefaultProguardFile(&#39;proguard-android-optimize.txt&#39;), &#39;proguard-rules.pro&#39;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
--------------------------------------&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/5496703673887287176/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/06/proguard-change-to-remove-just-log-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5496703673887287176'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5496703673887287176'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/06/proguard-change-to-remove-just-log-files.html' title='Proguard change to remove only the log files from android app'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-4771986746045180664</id><published>2015-05-06T12:12:00.000-04:00</published><updated>2015-05-06T12:12:55.465-04:00</updated><title type='text'>Heap size java commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
To find java heap size&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;java &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;XX&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;:+&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;PrintFlagsFinal&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;-&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;version &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;&amp;gt;&amp;amp;&lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;|&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; grep &lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;MaxHeapSize&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;java -XX:+PrintFlagsFinal -version | grep -iE &#39;HeapSize|PermSize|ThreadStackSize&#39;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx Adaptive&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;PermSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;Weight&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; intx Compiler&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;ThreadStackSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {pd product} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx Ergo&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;HeapSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;Limit &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;HeapSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;PerGCThread &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 87241520&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx Initial&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;HeapSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; := 64749440&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx LargePage&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;HeapSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;Threshold&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 134217728 &amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx Max&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;HeapSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; := 1035993088&amp;nbsp; &amp;nbsp; &amp;nbsp; {product}&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx Max&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;PermSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 174063616 &amp;nbsp; &amp;nbsp; &amp;nbsp; {pd product} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; uintx &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;PermSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 21757952&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {pd product} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; intx &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;ThreadStackSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {pd product} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; intx VM&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;&lt;b&gt;ThreadStackSize&lt;/b&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; = 1024&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {pd product} &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
Bytes t0 MB&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;pre class=&quot;lang-java prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;border: 0px; color: #2b91af; margin: 0px; padding: 0px;&quot;&gt;87241520/(1024*1024)&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/4771986746045180664/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/05/heap-size-java-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4771986746045180664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4771986746045180664'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/05/heap-size-java-commands.html' title='Heap size java commands'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-5929134073738698903</id><published>2015-04-30T08:53:00.003-04:00</published><updated>2015-08-07T12:49:52.950-04:00</updated><title type='text'>Working with #Sqlite database in #Android</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Log in into android Shell&lt;br /&gt;
&lt;br /&gt;
adb root&lt;br /&gt;
adb remount&lt;br /&gt;
adb shell&lt;br /&gt;
&lt;br /&gt;
Not in shell, cd to the folder where sql db is located at.&lt;br /&gt;
&lt;br /&gt;
cd /data/user/0/&lt;app-name&gt;/databases/&lt;/app-name&gt;&lt;br /&gt;
&lt;br /&gt;
Make sure you have the needed db&lt;br /&gt;
&lt;br /&gt;
ls&lt;br /&gt;
example.db&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Activate the sqlite commands&lt;br /&gt;
&lt;br /&gt;
sqlite3 and ENTER&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
to see version of database&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.headers on&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;PRAGMA user_version;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
You will see sqlite tab now. Type following command to open the needed database.&lt;br /&gt;
&lt;br /&gt;
sqlite&amp;gt; .open example.db&lt;br /&gt;
&lt;br /&gt;
see the tables in the database&lt;br /&gt;
&lt;br /&gt;
sqlite&amp;gt; .tables&lt;br /&gt;
&lt;br /&gt;
table1 &amp;nbsp;table2 table3&lt;br /&gt;
&lt;br /&gt;
To see schema of table1&lt;br /&gt;
&lt;br /&gt;
sqlite&amp;gt;.schema table1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;CREATE TABLE&amp;nbsp;table1&amp;nbsp;(_id INTEGER PRIMARY KEY, name TEXT NOT NULL,&amp;nbsp;license TEXT NOT NULL);&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
to see contents of table&lt;br /&gt;
sqlite&amp;gt; select * from table1;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To see what all supported commands are there -&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sqlite&amp;gt; .help&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.backup ?DB? FILE&amp;nbsp; &amp;nbsp; &amp;nbsp; Backup DB (default &quot;main&quot;) to FILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.bail on|off &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Stop after hitting an error.&amp;nbsp; Default OFF&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.clone NEWDB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Clone data into NEWDB from the existing database&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.databases &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;List names and files of attached databases&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.dump ?TABLE? ...&amp;nbsp; &amp;nbsp; &amp;nbsp; Dump the database in an SQL text format&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TABLE specified, only dump tables matching&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LIKE pattern TABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.echo on|off &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Turn command echo on or off&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.eqp on|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Enable or disable automatic EXPLAIN QUERY PLAN&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.exit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Exit this program&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.explain ?on|off?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Turn output mode suitable for EXPLAIN on or off.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; With no args, it turns EXPLAIN on.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.fullschema&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Show schema and the content of sqlite_stat tables&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.headers on|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Turn display of headers on or off&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.help&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;Show this message&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.import FILE TABLE &amp;nbsp; &amp;nbsp; Import data from FILE into TABLE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.indices ?TABLE? &amp;nbsp; &amp;nbsp; &amp;nbsp; Show names of all indices&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TABLE specified, only show indices for tables&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; matching LIKE pattern TABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.log FILE|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Turn logging on or off.&amp;nbsp; FILE can be stderr/stdout&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.mode MODE ?TABLE? &amp;nbsp; &amp;nbsp; Set output mode where MODE is one of:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; csv&amp;nbsp; &amp;nbsp; &amp;nbsp; Comma-separated values&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; column &amp;nbsp; Left-aligned columns.&amp;nbsp; (See .width)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; html &amp;nbsp; &amp;nbsp; HTML  code&lt;table&gt;&lt;/table&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; insert &amp;nbsp; SQL insert statements for TABLE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; line &amp;nbsp; &amp;nbsp; One value per line&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; list &amp;nbsp; &amp;nbsp; Values delimited by .separator string&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tabs &amp;nbsp; &amp;nbsp; Tab-separated values&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tcl&amp;nbsp; &amp;nbsp; &amp;nbsp; TCL list elements&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.nullvalue STRING&amp;nbsp; &amp;nbsp; &amp;nbsp; Use STRING in place of NULL values&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.once FILENAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Output for the next SQL command only to FILENAME&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.open ?FILENAME? &amp;nbsp; &amp;nbsp; &amp;nbsp; Close existing database and reopen FILENAME&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.output ?FILENAME? &amp;nbsp; &amp;nbsp; Send output to FILENAME or stdout&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.print STRING... &amp;nbsp; &amp;nbsp; &amp;nbsp; Print literal STRING&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.prompt MAIN CONTINUE&amp;nbsp; Replace the standard prompts&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.quit&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Exit this program&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.read FILENAME &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Execute SQL in FILENAME&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.restore ?DB? FILE &amp;nbsp; &amp;nbsp; Restore content of DB (default &quot;main&quot;) from FILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.save FILE &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Write in-memory database into FILE&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.schema ?TABLE?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Show the CREATE statements&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TABLE specified, only show tables matching&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LIKE pattern TABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.separator STRING ?NL? Change separator used by output mode and .import&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; NL is the end-of-line mark for CSV&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.shell CMD ARGS... &amp;nbsp; &amp;nbsp; Run CMD ARGS... in a system shell&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.show&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Show the current values for various settings&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.stats on|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Turn stats on or off&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.system CMD ARGS...&amp;nbsp; &amp;nbsp; Run CMD ARGS... in a system shell&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.tables ?TABLE?&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; List names of tables&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; If TABLE specified, only list tables matching&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LIKE pattern TABLE.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.timeout MS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Try opening locked tables for MS milliseconds&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.timer on|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Turn SQL timer on or off&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.trace FILE|off&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Output each SQL statement as it is run&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.vfsname ?AUX? &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Print the name of the VFS stack&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;.width NUM1 NUM2 ... &amp;nbsp; Set column widths for &quot;column&quot; mode&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Negative values right-justify&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/5929134073738698903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/04/working-with-sqlite-database-in-android.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5929134073738698903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/5929134073738698903'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/04/working-with-sqlite-database-in-android.html' title='Working with #Sqlite database in #Android'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-3436004783797778400</id><published>2015-04-27T12:32:00.002-04:00</published><updated>2015-04-27T12:32:39.745-04:00</updated><title type='text'>MY SQL commands</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
My SQL commands to keep safe update off&lt;br /&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot; style=&quot;background-color: #eeeeee; border: 0px; color: #393318; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; font-size: 13px; margin-bottom: 1em; max-height: 600px; overflow: auto; padding: 5px; width: auto; word-wrap: normal;&quot;&gt;&lt;code style=&quot;border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, sans-serif; margin: 0px; padding: 0px; white-space: inherit;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;border: 0px; color: darkblue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; SQL_SAFE_UPDATES &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;lit&quot; style=&quot;border: 0px; color: maroon; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;border: 0px; color: black; margin: 0px; padding: 0px;&quot;&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/3436004783797778400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/04/my-sql-commands.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3436004783797778400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/3436004783797778400'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/04/my-sql-commands.html' title='MY SQL commands'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-6552000784342896011</id><published>2015-04-22T23:23:00.003-04:00</published><updated>2015-04-24T18:13:44.929-04:00</updated><title type='text'>Unix commands  - maven and file listing</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Maven command to run java program&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;mvn exec:java -Dexec.mainClass=&quot;com.lochbridge.hadoop.NewCollectDriver&quot; -Dexec.args=&quot;Sample.txt trips&quot; &amp;nbsp;-Dlog4j.configuration=log4j.properties&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Unix command to find non-zero files created today&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;i&gt;find -maxdepth 1 -size +0 -mtime -1&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;List files details&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;i&gt;ls -al&amp;nbsp;&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;i&gt;ls -al file1 file2 file3&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Merge multiple files&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;i&gt;cat file1 file2 file3 &amp;gt;ResultFile&lt;/i&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/6552000784342896011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/04/mvn-command-to-run-maven-project.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6552000784342896011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/6552000784342896011'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/04/mvn-command-to-run-maven-project.html' title='Unix commands  - maven and file listing'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-2104926412376256725</id><published>2015-04-22T23:16:00.003-04:00</published><updated>2015-04-22T23:16:46.496-04:00</updated><title type='text'>Setting Maven on Amazon Ubuntu Linux</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;







&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Download the compressed maven binary.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ sudo wget ftp://apache.mirrors.pair.com/maven/maven-3/3.3.1/binaries/apache-maven-3.3.1-bin.tar.gz&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;If the link is old, get the latest link from maven site. Copy the link address, by selecting a proper mirror site.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Once you have proper link, the above command will download the compressed file.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ ls&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;








&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;apache-maven-3.3.1-bin.tar.gz&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;







&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$ sudo tar -xzvf apache-maven*&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$sudo mv apache-maven-3.3.1 /usr/local/maven&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$vi ~/.bashrc&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;type Esc , then i&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Go to last line&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;add&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;export&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; M2_HOME=&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/usr/&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/maven&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;export&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt; MAVEN_HOME=&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;/usr/&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;/maven&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;export&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; M2=&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/usr/&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;local&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;/maven/bin&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;










&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;export&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt; PATH=&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;${PATH}&lt;/span&gt;&lt;span class=&quot;s4&quot;&gt;:&lt;/span&gt;&lt;span class=&quot;s3&quot;&gt;$M2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;then type following commands :&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;Esc&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;:&lt;/span&gt;wq!&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
This will exit the vi editor&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;







&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$source ~/.bashrc &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;$mvn -version&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;You are all set. You will see following logs&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Apache Maven 3.3.1&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;







&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;Maven home: /usr/local/maven&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;b style=&quot;background-color: white; color: #38761d; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: x-small; line-height: 14px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/2104926412376256725/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/04/setting-maven-on-amazon-ubuntu-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/2104926412376256725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/2104926412376256725'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/04/setting-maven-on-amazon-ubuntu-linux.html' title='Setting Maven on Amazon Ubuntu Linux'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-1672719261957989631</id><published>2015-01-09T16:43:00.003-05:00</published><updated>2015-01-09T16:43:44.921-05:00</updated><title type='text'>Fiiles/Folder related to Android Studio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;These folders may be helpful in debugging related to issues related to Android Studio.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;~/Library/Application Support/AndroidStudio&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;~/Library/Caches/AndroidStudio&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;~/Library/Logs/AndroidStudio&lt;/span&gt;&lt;br style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot; /&gt;&lt;span style=&quot;background-color: white; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 13.6960000991821px; line-height: 17.8048000335693px;&quot;&gt;~/Library/Preferences/AndroidStudio&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/1672719261957989631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2015/01/fiilesfolder-related-to-android-studio.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/1672719261957989631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/1672719261957989631'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2015/01/fiilesfolder-related-to-android-studio.html' title='Fiiles/Folder related to Android Studio'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3115248951607344463.post-4687412114272109577</id><published>2014-11-23T19:18:00.000-05:00</published><updated>2014-11-23T19:18:21.262-05:00</updated><title type='text'>Starting Android Game with libgdx</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I started with libgdx as a game engine to see how easy it to write code with. My initial impression is very good. The libgdx website gives you a jar to download. When you run the following command on the downloaded jar:&lt;br /&gt;
&lt;br /&gt;








&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;java -jar gdx-setup.jar --dir testGame --package &lt;packagename&gt; --mainClass MyGame --sdkLocation &lt;sdk location=&quot;&quot;&gt;&lt;/sdk&gt;&lt;/packagename&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
a UI is presented. I was able to select Android Studio as a my IDE, and was able to generate the project. It generates two modules - android and core. The android module has your application launcher. The core is where your game logic resides.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
Once created, it comes with a default sample code. This displays a spooky bad logic icon on a red background. I was able to run the android module on emulator to see the result.&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
The following code was auto-generated by the jar. Once, you have this code base, you can use it to further extend your game logic.&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;!-- HTML generated using hilite.me --&gt;&lt;br /&gt;
&lt;div style=&quot;background: #ffffff; border-width: .1em .1em .1em .8em; border: solid gray; overflow: auto; padding: .2em .6em; width: auto;&quot;&gt;
&lt;pre style=&quot;line-height: 125%; margin: 0;&quot;&gt;&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.badlogic.gdx.ApplicationAdapter&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.badlogic.gdx.Gdx&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.badlogic.gdx.graphics.GL20&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.badlogic.gdx.graphics.Texture&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;import&lt;/span&gt; &lt;span style=&quot;color: #0e84b5; font-weight: bold;&quot;&gt;com.badlogic.gdx.graphics.g2d.SpriteBatch&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;

&lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;class&lt;/span&gt; &lt;span style=&quot;color: #bb0066; font-weight: bold;&quot;&gt;MyGdxGame&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;extends&lt;/span&gt; ApplicationAdapter &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
 SpriteBatch batch&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 Texture img&lt;span style=&quot;color: #333333;&quot;&gt;;&lt;/span&gt;
 
 &lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;create&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  batch &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; SpriteBatch&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
  img &lt;span style=&quot;color: #333333;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;new&lt;/span&gt; Texture&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;background-color: #fff0f0;&quot;&gt;&quot;badlogic.jpg&quot;&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;

 &lt;span style=&quot;color: #555555; font-weight: bold;&quot;&gt;@Override&lt;/span&gt;
 &lt;span style=&quot;color: #008800; font-weight: bold;&quot;&gt;public&lt;/span&gt; &lt;span style=&quot;color: #333399; font-weight: bold;&quot;&gt;void&lt;/span&gt; &lt;span style=&quot;color: #0066bb; font-weight: bold;&quot;&gt;render&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;()&lt;/span&gt; &lt;span style=&quot;color: #333333;&quot;&gt;{&lt;/span&gt;
  Gdx&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;gl&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;glClearColor&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  Gdx&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;gl&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;glClear&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;GL20&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;GL_COLOR_BUFFER_BIT&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  batch&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;begin&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
  batch&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;draw&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;(&lt;/span&gt;img&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color: #0000dd; font-weight: bold;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;);&lt;/span&gt;
  batch&lt;span style=&quot;color: #333333;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color: #0000cc;&quot;&gt;end&lt;/span&gt;&lt;span style=&quot;color: #333333;&quot;&gt;();&lt;/span&gt;
 &lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;span style=&quot;color: #333333;&quot;&gt;}&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sshabd.blogspot.com/feeds/4687412114272109577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sshabd.blogspot.com/2014/11/starting-android-game-with-libgdx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4687412114272109577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3115248951607344463/posts/default/4687412114272109577'/><link rel='alternate' type='text/html' href='http://sshabd.blogspot.com/2014/11/starting-android-game-with-libgdx.html' title='Starting Android Game with libgdx'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01209232605716152232</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>