<?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-4720280906012547245</id><updated>2024-08-29T05:15:07.169-07:00</updated><category term="aspect oriented programming"/><category term="design"/><category term="facebook development"/><category term="git"/><category term="heroku"/><category term="logging"/><title type='text'>Hit &amp;amp; Trial</title><subtitle type='html'>Genius. Lucky.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://hit-and-trial.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720280906012547245/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://hit-and-trial.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01566962061839441515</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>2</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4720280906012547245.post-3700730675834275151</id><published>2014-01-23T03:42:00.000-08:00</published><updated>2014-01-23T03:44:35.449-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aspect oriented programming"/><category scheme="http://www.blogger.com/atom/ns#" term="design"/><category scheme="http://www.blogger.com/atom/ns#" term="logging"/><title type='text'>Aspect Oriented Programming: Separate your logging code from the functionality code and other cool stuff!</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
A good logging framework is critical for even the most simple of software. You could be writing your code in Java or C++ or Rails and using either a custom home built logger or a standard logging framework like log4j, but you have to be logging.&lt;br /&gt;
&lt;br /&gt;
And if you have been logging, you know how ugly and cumbersome it makes your code look. It would be nice to somehow separate the logging code from the functionality code.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Aspect Oriented Programming&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;u&gt;Preface&lt;/u&gt;&lt;br /&gt;
A &lt;b&gt;concern&lt;/b&gt; is anything which impacts the code of a program. &lt;b&gt;Separation of concerns&lt;/b&gt;&amp;nbsp;simply means that each piece of code addresses a single concern. This leads to modular programming which is easier to code and more importantly leads to less bugs and the code is easier to change.&lt;br /&gt;
&lt;br /&gt;
When a single piece of code addresses multiple concerns, we call that &lt;b&gt;cross cutting concerns.&lt;/b&gt; The best example of a cross cutting concern is logging. The log statements are usually present throughout the code. A change in the logger code can impact any other functionality.&lt;br /&gt;
&lt;br /&gt;
The problem of cross cutting concerns is addressed at various levels by&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;Object Oriented Programming&lt;/li&gt;
&lt;li&gt;Functional Programming&lt;/li&gt;
&lt;li&gt;Aspect Oriented Programming&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
However, Object oriented programming (code is classified into objects) or Functional programming (dividing the code into simple functions) cannot really solve the problem described above (separating the logger code).&lt;/div&gt;
&lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720280906012547245/posts/default/3700730675834275151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720280906012547245/posts/default/3700730675834275151'/><link rel='alternate' type='text/html' href='http://hit-and-trial.blogspot.com/2014/01/aspect-oriented-programming-separate.html' title='Aspect Oriented Programming: Separate your logging code from the functionality code and other cool stuff!'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01566962061839441515</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></entry><entry><id>tag:blogger.com,1999:blog-4720280906012547245.post-1363687012730055114</id><published>2012-07-09T01:57:00.000-07:00</published><updated>2012-09-02T23:15:12.831-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="facebook development"/><category scheme="http://www.blogger.com/atom/ns#" term="git"/><category scheme="http://www.blogger.com/atom/ns#" term="heroku"/><title type='text'>Accessing your heroku account from multiple clients</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;i&gt;&lt;b&gt;C:\Users\ABC&amp;gt;git clone git@heroku.com:mn.git -o heroku&lt;br /&gt;Cloning into &#39;mn&#39;...&lt;br /&gt;The authenticity of host &#39;heroku.com (50.19.85.132)&#39; can&#39;t be established.&lt;br /&gt;RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad.&lt;br /&gt;Are you sure you want to continue connecting (yes/no)? yes&lt;br /&gt;Warning: Permanently added &#39;heroku.com,50.19.85.132&#39; (RSA) to the list of known&lt;br /&gt;hosts.&lt;br /&gt;Permission denied (publickey).&lt;br /&gt;fatal: The remote end hung up unexpectedly&lt;/b&gt;&lt;/i&gt;&lt;/blockquote&gt;
&lt;br /&gt;
The above error can come when you are doing an operation in your Heroku account from a different machine (other than the one you had used to log-in for the first time). The Heroku log-in generates a public key on the very first log-in attempt. Now, each client that needs to log-in to Heroku, must generate a public key. Since it does not happen automatically on subsequent log-ins, it needs to be done manually for each machine that you intend to use to operate your Heroku account from.&lt;br /&gt;
&lt;br /&gt;
This is how you can generate a public key and add it to your Heroku account&lt;br /&gt;
&lt;pre class=&quot;CodeRay&quot; lang=&quot;term&quot;&gt;&lt;span class=&quot;comment&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;function&quot;&gt; ssh-keygen -t rsa&lt;/span&gt;&lt;span class=&quot;comment&quot;&gt; &lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;CodeRay&quot; lang=&quot;term&quot;&gt;&lt;span class=&quot;comment&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;function&quot;&gt; heroku keys:add&lt;/span&gt;&lt;/pre&gt;
&lt;br /&gt;
The first command would&amp;nbsp; generate a public key. And, the second one would add it to your account. You can see all the keys added to your Heroku account by: &lt;br /&gt;
&lt;pre class=&quot;CodeRay&quot; lang=&quot;term&quot;&gt;&lt;span class=&quot;comment&quot;&gt;$&lt;/span&gt;&lt;span class=&quot;function&quot;&gt; heroku keys&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;CodeRay&quot; lang=&quot;term&quot;&gt;&lt;span class=&quot;function&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/pre&gt;
More information on the above topic can be found on:&lt;br /&gt;
https://devcenter.heroku.com/articles/keys&lt;br /&gt;
&lt;br /&gt;
Hope it helps! :) &lt;/div&gt;
</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4720280906012547245/posts/default/1363687012730055114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4720280906012547245/posts/default/1363687012730055114'/><link rel='alternate' type='text/html' href='http://hit-and-trial.blogspot.com/2012/07/accessing-your-heroku-account-from.html' title='Accessing your heroku account from multiple clients'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/01566962061839441515</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></entry></feed>