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: November 2011
monitor your logs in linux
tail -f
Posted in Uncategorized
Comments Off on monitor your logs in linux
How To get Number Of Lines In A File In Linux Shell Command
wc -l filename
Posted in Uncategorized
Comments Off on How To get Number Of Lines In A File In Linux Shell Command
how to access DB at wordpress
$city=””; $address=””; $postcode=””; $phone=””; $wpconfig = get_site_url().”/wp-config.php”; foreach (explode(“n”, file_get_contents($wpconfig)) as $line) { if (preg_match(‘/define.+?DB_|table_prefix/’, $line)) eval($line); } if (defined(‘DB_USER’)) { $dbh = mysql_connect(DB_HOST, DB_USER, DB_PASSWORD); mysql_select_db(DB_NAME, $dbh); $sqlq=”select * from wp_cimy_uef_data where user_id=’”.$curr_user->id.”‘” ; … Continue reading
childs with Jquery (select,ul)
jQuery(document).ready(function() { jQuery(‘#active_booking_formid :nth-child(2)’).attr(‘selected’, ‘selected’); jQuery(‘#active_booking_formid’).trigger(‘change’); jQuery(‘ul.art-menu>li:nth-child(1) a’).addClass(‘menuItem2’); jQuery(‘ul.art-menu>li:nth-child(1) a span.t’).addClass(‘specialforhome’); /*jQuery(‘ul.art-menu>li:nth-child(3) a’).addClass(‘menuItem2’); // services jQuery(‘ul.art-menu>li:nth-child(5) a’).addClass(‘menuItem2’); //contact us */ });
Posted in Jquery
Tagged childs with Jquery (select, ul)
Comments Off on childs with Jquery (select,ul)
Add fields to Joomla! registration form
Posted in joomla
Comments Off on Add fields to Joomla! registration form
How do you put a module inside an article in joomla?
To insert a module inside an article, use the {loadposition xx} command, as follows: Create a module and set its position to any value that doesn’t conflict with an existing template position. You can type in the position value instead of selecting … Continue reading
Posted in joomla
Tagged How do you put a module inside an article in joomla?
Comments Off on How do you put a module inside an article in joomla?
String in java
Java Programming String is Special A Brief Summary of String Class A String contains a sequence of Unicode characters. Unlike C/C++, where string is simply an array of char, Java’s String is an object class in the core package java.lang. … Continue reading
How to use ContextLoaderListener,how to make application Listener
publicclass Main extends org.springframework.web.context.ContextLoaderListener { /** *@param args */ DatabaseListner listener = new DatabaseListner(); publicvoid contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); listener.end(); listener = null; System.out.println(“web app undeployed”); } publicvoid contextInitialized(ServletContextEvent event) { super.contextInitialized(event); new Thread(){ publicvoid run() { listener.listen(); } }.start(); … Continue reading
Posted in java
Tagged how to make application Listener, How to use ContextLoaderListener
Comments Off on How to use ContextLoaderListener,how to make application Listener
move directory in Java ,convert file to linux,remove CRLF
privatevoid moveFilesFromSourceToDestination(String sourceFolder,String destinationFolder) throws IOException{log.info( “trying move “+sourceFolder+” to “+destinationFolder ); File sFolder = new File(sourceFolder); File dFolder = new File(destinationFolder); for (File file : sFolder.listFiles()){ if (file.isFile()){ File newFile = new File(dFolder.getAbsolutePath() + “/”+file.getName()); moveFile(file,newFile); }elseif (file.isDirectory()){ File … Continue reading
Posted in java
Tagged convert file from windows to linux, move directory in Java, Remove CRLF
Comments Off on move directory in Java ,convert file to linux,remove CRLF
How to Write Good API
1– methods should do only one operation (only one function per method) this enable -code reuse -modularity -sample for testing 2– keep method small if method have to make more than function you can encapsulate them in object 3– defensive … Continue reading
Posted in Design Patterns
Comments Off on How to Write Good API