Mohamed Omar
-
Join 8 other subscribers
Blog Stats
- 93,711 hits
Hours & Info
-
Recent Posts
- (JAI vs. ImageIO)
- Abstract Factory Design Pattern
- Authentication
- Basic
- Command Line Arguments
- conn
- content
- convert file from windows to linux
- DataSource
- display child pages title
- DriverManager
- eclipse
- excerpt of current parent page at wordpress
- export
- Factory Design Pattern
- federated search
- Form-based authentication
- get recent post in category in worpress
- How do I remove the title of an embedded sheet?
- How do you add a new joomla module position
- how login to ssh
- How to find and replace in mysql
- how to make application Listener
- How To send Email with attachment in java with spring
- How To Unzip Large File With Java
- How to use ContextLoaderListener
- idm
- java
- Java ClassLoader
- JDBC
- JNDI
- JPA Tuturial
- jquery
- JSP
- JSTL
- learn
- linux
- Map
- move directory in Java
- nodemanager
- OAM
- ODC
- oid
- OIM
- oracle
- oracle Access Manager
- oracle identity and access management
- oracle identity manager
- PooledConnection
- preparedstatement
- records
- regex
- Remove CRLF
- remove title from embedded google spreedsheet
- resultset
- schedule tasks by java
- Security constraints
- Spring
- Spring framework without XML
- static int
- Timer by java
- tutorial
- UCM
- unzip
- URM
- View technologies
- web.xml
- Web Application Deployment Descriptors
- webcenter content
- weblogic
- Widgetize wordpress
- WordPress Custom Post Types Guide
- WordPress Theme: Log In On The Front Page
- WP-Ecommerce
- Write Multiple Images Tiff File
Archives
- October 2017
- August 2017
- January 2015
- December 2014
- September 2014
- August 2014
- June 2014
- January 2014
- December 2013
- November 2013
- September 2013
- August 2013
- June 2013
- May 2013
- April 2013
- March 2013
- December 2012
- November 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
Top Clicks
- None
Monthly Archives: October 2011
how To sort a hashmap using its keys and/or values
To sort a hashmap using its keys :- Dump the HashMap into a TreeMap: Map yourMap= new HashMap(); // put some tuples in yourMap … Map sortedMap = new TreeMap(yourMap); To sort a hashmap using its values :- public HashMap getSortedMap(HashMap hmap) … Continue reading
Posted in collections
Comments Off on how To sort a hashmap using its keys and/or values
[Java] Reverse ordering a TreeMap
TreeMap is a Map that keep the element in the natural order of the key. The order can be changed providing to the contructor of the TreeMap a Comparable. So you can implement your custom one for more specific tasks. However if you only … Continue reading
Posted in collections
Comments Off on [Java] Reverse ordering a TreeMap
get post by title
function get_post_by_title($page_title) { global $wpdb; $post = $wpdb->get_var( $wpdb->prepare( “SELECT ID FROM $wpdb->posts WHERE post_title = %s “, $page_title )); if ( $post ) { $post= get_post($post, $output); //print_r($post); $language=get_bloginfo(‘language’); if($post->post_type==”research”){ $research_language= get_post_meta($post->ID, ‘language’, true); // print $research_language. ” “.$language;print … Continue reading
Posted in wordpress
Comments Off on get post by title
junit music box on eclipse
Posted in junit
Comments Off on junit music box on eclipse
copy over network at linux
scp admin@192.168.30.31:/home/admin/amazon_price_checker_uk-25.csv amazon_price_checker_uk-25.csv with different port scp -P 15000 /u001/sso_software/Single_sign_on/oam_11.1.1.5.tar.gz oracle@10.20.100.1:/u01/software/oam_11.1.1.5.tar.gz
SqlExecuter vs JDBC
public class CmdExec { public static void main(String argv[]) { executeSql(); } private static void executeSql() { final class SqlExecuter extends SQLExec { public SqlExecuter() { Project project = new Project(); project.init(); setProject(project); // setTaskType(“sql”); setTaskName(“sql”); } } SqlExecuter executer … Continue reading
Methods Common to All Objects :effective java ch3
Item 7: Obey the general contract when overriding equals Item 8: Always override hashCode when you override equals Item 9: Always override toString Item 10: Override clone judiciously Item 11: Consider implementing Comparable ———————————————————————————————————————————————————————– Item 7: Obey the general contract … Continue reading
Posted in effective java
Comments Off on Methods Common to All Objects :effective java ch3
how to get last insert id by java
public static int getLastInsertID(Connection conn, String statment)throws SQLException { int lastInsertedId = -1; PreparedStatement ps = conn.prepareStatement(statment,PreparedStatement.RETURN_GENERATED_KEYS); ps.executeUpdate(); ResultSet rskey = ps.getGeneratedKeys(); if (rskey != null && rskey.next()) { lastInsertedId = rskey.getInt(1); } return lastInsertedId; }
Posted in java, jdbc, mysql
Tagged conn, preparedstatement, resultset, static int
Comments Off on how to get last insert id by java
rtl support at wordpress
Posted in wordpress
Comments Off on rtl support at wordpress