<?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: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-7665105941241356675</id><updated>2011-12-08T06:57:30.359-08:00</updated><category term='earnings'/><category term='restart'/><category term='startup'/><category term='engine'/><category term='change'/><category term='new'/><category term='title'/><category term='sqlplus'/><category term='PLSQL date epoch convert java millisecond timestamp function'/><category term='networks'/><category term='oracle'/><category term='seo'/><category term='interface'/><category term='commands'/><category term='adwords'/><category term='wordpress buddypress mu custom page show posts pagination'/><category term='decrease'/><category term='adsense'/><category term='sink'/><category term='penalized'/><category term='adesense'/><category term='java date epoch convert time milliseconds format dateformat simpledateformat example complete code simple'/><category term='search'/><category term='shutdown'/><category term='rank'/><category term='review'/><category term='google analytics adword offer adevertise free'/><category term='database'/><category term='google'/><title type='text'>Tech Thoughts</title><subtitle type='html'>My techincal confrontations in web and software world.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-4744172362129262782</id><published>2010-11-03T00:28:00.000-07:00</published><updated>2010-11-03T02:10:33.738-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='adsense'/><category scheme='http://www.blogger.com/atom/ns#' term='new'/><category scheme='http://www.blogger.com/atom/ns#' term='interface'/><category scheme='http://www.blogger.com/atom/ns#' term='review'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><title type='text'>First look at the New Google Adsense Interface</title><content type='html'>Google has launched a new Adesense Interface for the Webmasters. You will be able to view a link "Try the new AdSense interface" on&amp;nbsp;right hand top corner of your current Adesnese Interface.&lt;br /&gt;&lt;br /&gt;Google&amp;nbsp;has&amp;nbsp;this to say&amp;nbsp;regarding this interface:&lt;br /&gt;"The new AdSense has been designed to help you manage your account more efficiently, offer you deeper insights about your site’s revenue, and give you more control over the ads you show. A few of the new things you can do include:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Make changes to your ad units in bulk by visiting the "My ads" tab.&lt;/li&gt;&lt;li&gt;Compare your performance this month and last month under the Performance reports tab.&lt;/li&gt;&lt;li&gt;&lt;br /&gt;Visit the Allow &amp;amp; block ads tab to block categories of ads.&lt;/li&gt;&lt;/ul&gt;I noticed number of changes in my first quick Look:&lt;br /&gt;- The tool is now using rich UI, more efficient and eye catchy.&lt;br /&gt;- The performance report has new columns and some of the old columns are removed. Google seems to have gone Ad Unit oriented instead of previous Page Unit. Instead of Page impressions, its now showing Ad Unit Impression. Similarly CTR is based on Ad Units only. Google seems to have removed the Page&amp;nbsp;eCPM, instead it has introduced CPC, RPM and also Coverage. It may take some time for old users to get used to these&amp;nbsp;new columns.&lt;br /&gt;- The adesense reports now have graphs, which&amp;nbsp;will be&amp;nbsp;helpful.&lt;br /&gt;&lt;br /&gt;- You can now run detailed performance reports by ad type, ad size, ad unit, targeting type, and bid type for total earnings and other metrics, over a custom date range. You can also drill down into those reports to view new reports for just one or multiple elements, like channels, ad units, or products. &lt;br /&gt;- My Ad section has also seen changes. The Content ads, Link and Ad Units are merged into single one. &lt;br /&gt;&lt;br /&gt;- They have revamped the Resource page&amp;nbsp;adding Twitter,Facebook and Youtube channels.&lt;br /&gt;&lt;br /&gt;There is not much functionality changes in this beta version as they need to run the older version along with the new one. I hope going forward they will be adding more features. The UI is definitely attractive and I think it will be accepted by the users very soon.&lt;br /&gt;&lt;br /&gt;Look into googles official docs &lt;a href="http://google.com/ads/newadsense"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;object width="480" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/p/994E1CEC6D6FA997?hl=en_US&amp;fs=1"&gt;&lt;/param&gt;&lt;param name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;&lt;embed src="http://www.youtube.com/p/994E1CEC6D6FA997?hl=en_US&amp;fs=1" type="application/x-shockwave-flash" width="480" height="385" allowscriptaccess="always" allowfullscreen="true"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-4744172362129262782?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/4744172362129262782/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=4744172362129262782' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/4744172362129262782'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/4744172362129262782'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/11/first-look-at-new-google-adsense.html' title='First look at the New Google Adsense Interface'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-849962312078356846</id><published>2010-07-15T03:26:00.000-07:00</published><updated>2010-07-15T03:37:32.733-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='wordpress buddypress mu custom page show posts pagination'/><title type='text'>Show all posts in a custom template page in wordpress MU</title><content type='html'>I was trying to do this.&lt;br /&gt;&lt;br /&gt;1. My front page/home page&amp;nbsp;will display only recent four posts. There will be a link "View all posts" in the home page.&lt;br /&gt;2. The above link will take user to a custom page where all the posts from the main blog will be&amp;nbsp;displayed. The page will have pagination links.&lt;br /&gt;&lt;br /&gt;Initally I was trying to make use of query_posts with no luck. With some intense search I could find the trick and now its working fine. I am posting the&amp;nbsp;exact steps&amp;nbsp;here.&lt;br /&gt;&lt;br /&gt;1. Create a pnew page&amp;nbsp;with custom templates.&lt;br /&gt;2. The&amp;nbsp;custom-template will have the following code:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;div id="content"&gt;&lt;div class="padder"&gt;&lt;pre&gt;&lt;span style="background-color: #fce5cd;"&gt;&amp;lt;?php&lt;br /&gt;/*&lt;br /&gt;Template Name: Custom-tmplate&lt;br /&gt;*/&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php get_header() ?&amp;gt;&lt;br /&gt; &amp;lt;div id="content"&amp;gt;&lt;br /&gt; &amp;lt;div class="padder"&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;?php&lt;br /&gt;   $limit = get_option('posts_per_page');&lt;br /&gt;   $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;&lt;br /&gt;   query_posts('&amp;amp;posts_per_page='.$limit.'&amp;amp;paged='.$paged.'pagename=&amp;amp;page_id=');&lt;br /&gt;   $wp_query-&amp;gt;is_archive = false;&lt;br /&gt;   $wp_query-&amp;gt;is_home = false;&lt;br /&gt;   if ( have_posts() ) :?&amp;gt;&lt;br /&gt;   &amp;lt;div class="post-index"&amp;gt;&amp;lt;ul&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;?php&lt;br /&gt;    while (have_posts()) : the_post();?&amp;gt;&lt;br /&gt;     &amp;lt;li&amp;gt;&lt;br /&gt;     &amp;lt;?php do_action( 'bp_before_blog_post' ) ?&amp;gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;div class="author-box-index"&amp;gt;&lt;br /&gt;       &amp;lt;?php echo get_avatar( get_the_author_meta( 'user_email' ), '30' ); ?&amp;gt;&lt;br /&gt;      &amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;      &amp;lt;div class="post-content"&amp;gt;&lt;br /&gt;       &amp;lt;h2 class="homeblogtitle"&amp;gt;&amp;lt;a href="&amp;lt;?php the_permalink() ?&amp;gt;" rel="bookmark" title="&amp;lt;?php _e( 'Permanent Link to', 'buddypress' ) ?&amp;gt; &amp;lt;?php the_title_attribute(); ?&amp;gt;"&amp;gt;&amp;lt;?php the_title(); ?&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;&lt;br /&gt;       &amp;lt;p class="date"&amp;gt;&amp;lt;i&amp;gt;&amp;lt;?php the_time('F j, Y') ?&amp;gt;&amp;lt;/i&amp;gt; &amp;lt;em&amp;gt;&amp;lt;?php _e( 'in', 'buddypress' ) ?&amp;gt; &amp;lt;?php the_category(', ') ?&amp;gt; &amp;lt;?php printf( __( 'by %s', 'buddypress' ), bp_core_get_userlink( $post-&amp;gt;post_author ) ) ?&amp;gt;&amp;lt;/em&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;       &amp;lt;p class="postmetadata"&amp;gt;&lt;br /&gt;       &amp;lt;span class="postcomments"&amp;gt;&amp;lt;?php comments_popup_link( __( 'No Comments', 'buddypress' ), __( '1 Comment', 'buddypress' ), __( '% Comments', 'buddypress' ) ); ?&amp;gt;&amp;lt;/span&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;      &amp;lt;/div&amp;gt;&lt;br /&gt;     &amp;lt;?php do_action( 'bp_after_blog_post' ) ?&amp;gt;&lt;br /&gt;     &amp;lt;/li&amp;gt;&lt;br /&gt;    &amp;lt;?php endwhile; ?&amp;gt;&lt;br /&gt;    &amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;?php&lt;br /&gt;    if (function_exists('wp_pagenavi')) : ?&amp;gt;&lt;br /&gt;    &amp;lt;div class="pagenavi"&amp;gt;&lt;br /&gt;     &amp;lt;?php wp_pagenavi(); ?&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;?php else : // Use WordPress default page navigation. ?&amp;gt;&lt;br /&gt;    &amp;lt;div class="pages"&amp;gt;&lt;br /&gt;     &amp;lt;span class="older"&amp;gt;&amp;lt;?php next_posts_link('« Older Entries'); ?&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;     &amp;lt;span class="newer"&amp;gt;&amp;lt;?php previous_posts_link('Newer Entries »'); ?&amp;gt;&amp;lt;/span&amp;gt;&lt;br /&gt;    &amp;lt;/div&amp;gt;&lt;br /&gt;    &amp;lt;?php endif; ?&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;?php else : ?&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;h2 class="center"&amp;gt;&amp;lt;?php _e( 'Not Found', 'buddypress' ) ?&amp;gt;&amp;lt;/h2&amp;gt;&lt;br /&gt;    &amp;lt;p class="center"&amp;gt;&amp;lt;?php _e( 'Sorry, but you are looking for something that isn\'t here.', 'buddypress' ) ?&amp;gt;&amp;lt;/p&amp;gt;&lt;br /&gt;&lt;br /&gt;    &amp;lt;?php locate_template( array( 'searchform.php' ), true ) ?&amp;gt;&lt;br /&gt;&lt;br /&gt;   &amp;lt;?php endif;&lt;br /&gt;   wp_reset_query();&lt;br /&gt;   ?&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&lt;br /&gt; &amp;lt;/div&amp;gt;&amp;lt;!-- #content --&amp;gt;&lt;br /&gt;&lt;br /&gt; &amp;lt;?php locate_template( array( 'sidebar.php' ), true ) ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php get_footer() ?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&lt;span style="background-color: #fce5cd;"&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;&lt;pre&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-849962312078356846?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/849962312078356846/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=849962312078356846' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/849962312078356846'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/849962312078356846'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/07/show-all-posts-in-custom-template-page.html' title='Show all posts in a custom template page in wordpress MU'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-8475554409438144272</id><published>2010-03-17T03:26:00.000-07:00</published><updated>2010-03-17T03:27:42.658-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google analytics adword offer adevertise free'/><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='networks'/><category scheme='http://www.blogger.com/atom/ns#' term='adwords'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='earnings'/><category scheme='http://www.blogger.com/atom/ns#' term='adesense'/><title type='text'>AdSense Recent Announcement: Now serving multiple ad networks</title><content type='html'>This is what I do see in a recent mail from Google Adsense. It look interesting to me and waiting for how does it effect the current earnings. Will update on that soon.&lt;br /&gt;&lt;br /&gt;"We have launched a new capability in AdSense allowing Google-certified ad networks compete directly within AdSense, which means that advertisers from these third-party networks will be able to compete with AdWords advertisers to show on the Google Content Network.&lt;br /&gt;&lt;br /&gt;These new capabilities will automatically be enabled for your account, and you'll see a new section in your Ad Review Center where you can allow or block specific ad networks or all networks except AdWords. Please note that we'll gradually be adding new ad networks to AdSense accounts over the next few months, so you won't see any immediate impact on your ads or your earnings.&lt;br /&gt;&lt;br /&gt;To ensure the quality of the ads that appear on AdSense publisher websites, Google will certify all participating ad networks for adherence to our standards for user privacy, ad quality, and speed. Some participating ad networks use targeting methods similar to Google's interest-based advertising to show more relevant ads to users on the sites they visit. These ad networks won't be permitted to collect data from your site for the purpose of subsequent interest-based advertising, but we'll allow networks that comply with user privacy guidelines to show ads using these tools. Publishers can opt out of user interest targeting from these ad networks, and Google has changed our requirements for third-party ad serving to reflect this.&lt;br /&gt;&lt;br /&gt;We are currently only accepting ads from Google-certified ad networks in North America and Europe, but we will make this feature available to ad networks in additional parts of the world in the future."&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-8475554409438144272?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/8475554409438144272/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=8475554409438144272' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/8475554409438144272'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/8475554409438144272'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/03/adsense-recent-announcement-now-serving.html' title='AdSense Recent Announcement: Now serving multiple ad networks'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-7087015902373174393</id><published>2010-02-18T01:57:00.000-08:00</published><updated>2010-02-18T01:57:35.337-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='google analytics adword offer adevertise free'/><title type='text'>Google Analytics offer for free adword adevertisings</title><content type='html'>One of many webmasters' products provided by Google is "Google Analytics". This tool help webmasters to optimize websites with detailed traffic reports. Like any other website statistic product, Google Analytics also provides graphical representaions of unique visitors, page views, Search Engine hits, etc. Not going much detail into the product, webmasters are welcome to try it themselves find the cool features.&lt;br /&gt;&lt;br /&gt;Another good news to the webmasters who create accounts in Google Analytics may get a nice free 2500 INR (Indian Rupees) offer on Google adwords. So, it is a nice opportunity to explore Google Adwords and also popularize the new website you have built. After months of enrolling into Analytics, webmaster gets the offer mail with redeem code.&lt;br /&gt;&lt;br /&gt;Just sign into adwords with the same account as Analytics and enter the redeem code provided in the mail in the "Billing Preference" section. Rest of the adwords configurations are easy and can be customized as per the webmasters' need.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-7087015902373174393?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/7087015902373174393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=7087015902373174393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/7087015902373174393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/7087015902373174393'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/02/google-analytics-offer-for-free-adword.html' title='Google Analytics offer for free adword adevertisings'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-3659160519928516567</id><published>2010-02-17T02:42:00.000-08:00</published><updated>2010-02-17T02:42:23.641-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PLSQL date epoch convert java millisecond timestamp function'/><title type='text'>Convert Date to millisecond format (millsec from epoch) in PLSQL</title><content type='html'>I have already explained in a previous blog how to convert the Java date in millisecond format into human readable format. In this blog I will explain how to do the reverse using PLSQL.&lt;br /&gt;This kind of requirements come up when various applications run on the same database, same tables but applications use different techonologies. Some table may have stored the timestamp in the Java's format but an application written in PLSQL may want to update the timestamp.&lt;br /&gt;&lt;br /&gt;The following PLSQL function will do the job:&lt;br /&gt;&lt;br /&gt;FUNCTION get_epoch_timestamp(curr_date IN TIMESTAMP) return NUMBER is&lt;br /&gt;l_ep_tmstmp NUMBER;&lt;br /&gt;BEGIN&lt;br /&gt;select&lt;br /&gt;EXTRACT(DAY FROM (curr_date - to_timestamp('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS')))*86400000 +&lt;br /&gt;EXTRACT(HOUR FROM (curr_date - to_timestamp('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS')))*3600000 +&lt;br /&gt;EXTRACT(MINUTE FROM (curr_date - to_timestamp('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS')))*60000 +&lt;br /&gt;ROUND(EXTRACT(SECOND FROM (curr_date - to_timestamp('1-1-1970 00:00:00','MM-DD-YYYY HH24:Mi:SS'))),3)*1000 into l_ep_tmstmp&lt;br /&gt;from dual;&lt;br /&gt;&lt;br /&gt;return l_ep_tmstmp;&lt;br /&gt;EXCEPTION when others then&lt;br /&gt;return 0;&lt;br /&gt;END;&lt;br /&gt;&lt;br /&gt;The above function can be called like this to get the millisecond format for the current timestamp:&lt;br /&gt;&lt;br /&gt;SELECT get_epoch_timestamp(systimestamp) from dual;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-3659160519928516567?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/3659160519928516567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=3659160519928516567' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3659160519928516567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3659160519928516567'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/02/convert-date-to-millisecond-format.html' title='Convert Date to millisecond format (millsec from epoch) in PLSQL'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-3638686710393476151</id><published>2010-02-15T23:22:00.000-08:00</published><updated>2010-02-15T23:22:11.205-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='java date epoch convert time milliseconds format dateformat simpledateformat example complete code simple'/><title type='text'>Convert Java Time in millisec to readable Date format</title><content type='html'>&lt;div&gt;In Java, Date object represents time in milliseconds from the "the Epoch". The Epoch is nothing but distance in time from January 1, 1970, 00:00:00 GMT, measured in milliseconds.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;There are situations when you would want to convert the date time stored in this millisecond format into human readable normal date format.&amp;nbsp;The time in these scenarios will&amp;nbsp;be stored in a Long variable.&amp;nbsp;The following class will do the job for you:&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;package test;&lt;br /&gt;import java.text.SimpleDateFormat;&lt;br /&gt;import java.util.Date;&lt;br /&gt;&lt;br /&gt;public class CalculateDate {&lt;br /&gt;&lt;br /&gt;public CalculateDate() &lt;br /&gt;{&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;public static String getCurrentDTG (long l_time)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp; Date date = new Date (l_time);&lt;br /&gt;&amp;nbsp; // Specify the date format you want to display&lt;br /&gt;&amp;nbsp; SimpleDateFormat dtgFormat = new SimpleDateFormat ("E-dd-MMM:HH:mm:ss-yyyy");&lt;br /&gt;&amp;nbsp; return dtgFormat.format (date);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;public static void main(String[] args)&lt;/div&gt;&lt;div&gt;{&lt;/div&gt;&lt;br /&gt;&amp;nbsp; // The time in millisecond&lt;br /&gt;&amp;nbsp; long l_t = 1250620345001L;&lt;br /&gt;&amp;nbsp; String strDte = getCurrentDTG(l_t);&lt;br /&gt;&amp;nbsp; System.out.println("Date :"+strDte);&lt;br /&gt;}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;The output of the above code will be:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;Date :Wed-19-Aug:00:02:25:001-2009&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &lt;br /&gt;The string passed into SimpleDateFormat instance&amp;nbsp;will decide the Date format to be displayed. In this example following conventions are used: &lt;br /&gt;E&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Day in Week, e.g Wed &lt;br /&gt;dd&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Day of the month in number &lt;br /&gt;MMM&amp;nbsp; - Month in&amp;nbsp;three character string &lt;br /&gt;HH&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Hour in 24hr format &lt;br /&gt;mm&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Minute in number&amp;nbsp; &lt;br /&gt;ss&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Second in number &lt;br /&gt;SSS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Millisecond in number &lt;br /&gt;yyyy&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; - Year in number , e.g. 2009 &lt;br /&gt;&amp;nbsp; &lt;br /&gt;toString() method also converts Date into a readable format as follows: &lt;br /&gt;&lt;em&gt;dow mon dd hh:mm:ss zzz yyyy&lt;/em&gt; &lt;br /&gt;But the developer will not have any handle to change the above format. So the above code is a preferable way of doing the same. &lt;br /&gt;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-3638686710393476151?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/3638686710393476151/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=3638686710393476151' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3638686710393476151'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3638686710393476151'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2010/02/convert-java-time-in-millisec-to.html' title='Convert Java Time in millisec to readable Date format'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-5612924330561293901</id><published>2008-12-30T22:15:00.000-08:00</published><updated>2008-12-30T23:02:39.892-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sqlplus'/><category scheme='http://www.blogger.com/atom/ns#' term='startup'/><category scheme='http://www.blogger.com/atom/ns#' term='restart'/><category scheme='http://www.blogger.com/atom/ns#' term='shutdown'/><category scheme='http://www.blogger.com/atom/ns#' term='commands'/><category scheme='http://www.blogger.com/atom/ns#' term='database'/><category scheme='http://www.blogger.com/atom/ns#' term='oracle'/><title type='text'>To Start and Shutdown an Oracle Database Server</title><content type='html'>You can blindly follow the steps below to restart an Oracle Database server(9i and above) in an unix server.&lt;br /&gt;&lt;br /&gt;1. Logs into the machine where the Oracle Database server resides as 'Oracle' user.&lt;br /&gt;2. Go to the sqlplus executor of the Database instance of the Database you want to restart. You can achieve this by the following command:&lt;br /&gt;$chgsid&lt;br /&gt;&lt;br /&gt;This will list down the Oracle servers in the machine and you can just opt for the instance you want to restart.&lt;br /&gt;&lt;br /&gt;Or you can directly execute the following:&lt;br /&gt;$ {ORACLE_HOME Path}/bin/sqlplus&lt;br /&gt;&lt;br /&gt;Execute the following sqlplus command:&lt;br /&gt;&lt;br /&gt;$SQLPLUS / as sysdba&lt;br /&gt;or&lt;br /&gt;$SQLPLUS "/ as sysdba"&lt;br /&gt;The quotes are needed for 9i server.&lt;br /&gt;&lt;br /&gt;3. The above command will take you to the sqlplus prompt. Execute the following to stop the server:&lt;br /&gt;&lt;br /&gt;SQL&gt;shutdown immediate;&lt;br /&gt;&lt;br /&gt;After successful shutdown execute the following command to start the server:&lt;br /&gt;&lt;br /&gt;SQL&gt;startup;&lt;br /&gt;&lt;br /&gt;The server should startup successfully. And you are done with the restart.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you want to know details of the above commands read the following:&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SYSDBA:&lt;/strong&gt; This is an administrative user which has the ability to perform high level administrative tasks like starting, shutting, backing up the Database. This user doesn't have privileges to view the user data. Similar user to SYSDBA is SYSOPER.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;SHUTDOWN:&lt;/strong&gt; sqlplus command to shut a DB server down. It has three options:&lt;br /&gt;SHUTDOWN &lt;options&gt;&lt;br /&gt;a. Default(No parameters passed) : It will stop the server after all the tarnsactions get completed in the DB.&lt;br /&gt;b. immediate: This option will terminate all sessions and rollback any incomplete transaction.&lt;br /&gt;c. abort : This will kill all the process and abort the sessions without any rollback to the transactions.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;STARTUP:&lt;/strong&gt; The default Startup command when no parameters passed into it, will start the Database, Mount it and then opens it for normal usage. All these three stages has different significances and useful for various database recovery processes.&lt;br /&gt;The START stage just reads the init.ora files of the Databse. This file's location can be passed as a parameter to the startup command:&lt;br /&gt;SQL&gt;startup pfile=&lt;init.ora file location&gt;&lt;br /&gt;&lt;br /&gt;In the MOUNT stage it reads all the control files and determines the data files locations.&lt;br /&gt;&lt;br /&gt;In OPEN stage it opens all the data files located in the mount stage.&lt;br /&gt;&lt;br /&gt;In some recovery process, the DB needs to be just started not even mounted. The command to be used in this scenario:&lt;br /&gt;SQL&gt; startup nomount;&lt;br /&gt;&lt;br /&gt;In other recovery processes the DB needs to be just mounted, so the command used:&lt;br /&gt;SQL&gt; startup mount;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-5612924330561293901?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/5612924330561293901/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=5612924330561293901' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/5612924330561293901'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/5612924330561293901'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2008/12/to-start-and-shutdown-oracle-database.html' title='To Start and Shutdown an Oracle Database Server'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7665105941241356675.post-3672964784535918034</id><published>2008-12-29T02:09:00.000-08:00</published><updated>2008-12-29T03:10:27.430-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='title'/><category scheme='http://www.blogger.com/atom/ns#' term='penalized'/><category scheme='http://www.blogger.com/atom/ns#' term='seo'/><category scheme='http://www.blogger.com/atom/ns#' term='rank'/><category scheme='http://www.blogger.com/atom/ns#' term='engine'/><category scheme='http://www.blogger.com/atom/ns#' term='search'/><category scheme='http://www.blogger.com/atom/ns#' term='change'/><category scheme='http://www.blogger.com/atom/ns#' term='sink'/><category scheme='http://www.blogger.com/atom/ns#' term='google'/><category scheme='http://www.blogger.com/atom/ns#' term='decrease'/><title type='text'>Why do I get bad rank in google search after title change?</title><content type='html'>It's been more than two years for me while working on few small websites I own. I started from the ground zero level and with constant efforts I gained some good amount of knowledge in website optimization. I will share few of my experiences here whenever I can manage time wo write it down.&lt;br /&gt;&lt;br /&gt;My experience says, google is becoming too strict and you need to be very careful to build or modify your website. If you loose ranks in google, it's always difficult to get good amount of traffic.&lt;br /&gt;&lt;br /&gt;One of my recent experience with google is that if you change or optimize your &amp;lt;title&amp;gt; for some well established pages of your website, you may see a steep fall in your google ranking. I am not talking about the 'page rank', but I am talking about the search rank in google. I tried optimizing the &amp;lt;title&amp;gt; for around 10 important pages including my index page. And the penalty was too huge. I was dropped from a search rank of 3 to below 60 for some 'specific words' when google crawled those pages. Ironically I optimized my titles for those specific words only! I searched around google and found that this is very known fact that the rank sinks if you change the title until and unless you are a big player! I just banged my head to find a solution but didn't find any. Everywhere there was mention of only negative things.&lt;br /&gt;&lt;br /&gt;My web traffic started decreasing drastically(200%) so I looked for the options described by other SEO experts and found the only solution will be to restore the pages to the old titles. But I was adamant and didn't want to opt for old titles which seemed to be very dirty for me. I decided to opt for observe(not wait) and watch! I knew I didn't do anything wrong or over optimized, then why should google punish me? I closlely observered my rankings in various times of the day. I found it was very much fluctuating across various google datacenters. At times I used to get a rank 0f 30 while at different time 60 in the same day. I kept on checking the ranks every day in at various times. Initially I found the trend was going downwards, i.e. kept on losing losing the rank day by day. After couple of weeks my ranks seem to be stabilized at around 70, page no 7. I kept my patience for two weeks but it was still in the same rank. After these stabilized two weeks, one morning I found my rank to be at around 40th rank. Though later in the day I saw myself in the 7th page, it gave me a confidence that my page is ranked well in some datacenter.&lt;br /&gt;I kept on watching and found in the morning the time the ranking was improving almost on daily basis. Though the other datcenters still giving me a rank of 70! There was a time when I used to get a rank in top 10 in morning while around 70 in other times! But slowly the other datacenters started showing improvement. And my average ranking started improving. Within two-three weeks all the datrcenters synced up. And finally I got a whooping rank of 2! Now it seems to be fighting with number 1 contender!&lt;br /&gt;&lt;br /&gt;So the gist of the story is that, don't be frustrated. If you haven't over optimized the whole page and just cleaning up the &amp;lt;title&amp;gt; to contain better texts, then you will get a better result in few months if not immediately. In my case, the whole process took me around three months. &lt;br /&gt;And this is applicable to google only, I found other search engines like yahoo , live, msn didn't penalized me. In fact I got good results in those search engines once my pages got crawled.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7665105941241356675-3672964784535918034?l=techtime-thoughts.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://techtime-thoughts.blogspot.com/feeds/3672964784535918034/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=7665105941241356675&amp;postID=3672964784535918034' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3672964784535918034'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7665105941241356675/posts/default/3672964784535918034'/><link rel='alternate' type='text/html' href='http://techtime-thoughts.blogspot.com/2008/12/why-i-get-bad-rank-in-google-search.html' title='Why do I get bad rank in google search after title change?'/><author><name>Abhijit</name><uri>http://www.blogger.com/profile/12969281529450908660</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='31' height='32' src='http://4.bp.blogspot.com/_PNXfI_VmnEw/SU9x-afNe5I/AAAAAAAACUY/QD9keJRE_3w/S220/me.jpg'/></author><thr:total>0</thr:total></entry></feed>
