
<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.8" -->
<rss version="0.92">
<channel>
	<title>doOriented.com</title>
	<link>http://www.dooriented.com/blog</link>
	<description>Less words, more code</description>
	<lastBuildDate>Thu, 25 Jun 2009 01:23:44 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Wicket Component &#8211; Simple Breadcrumbs</title>
		<description>A very simple simple wicket component to display links in an hierarchical order. You can see it live here

Full sources are available here.

This is how you add it to the page:

Java
[sourcecode language='java']
		add(new Breadcrumbs("breadcrumbs", 
			Arrays.asList(new WCLink[]{
					new WCLink("Web application section 1", "http://www.1.com"),
					new WCLink("Web application section 11" , "http://www.11.com"),
					new WCLink("Web application section 111", ...</description>
		<link>http://www.dooriented.com/blog/2009/05/12/wicket-component-simple-breadcrumbs/</link>
			</item>
	<item>
		<title>Wicket Component &#8211; JQuery Accordion Menu</title>
		<description>Presenting a very simple wicket component for everybody to use - a JQuery accordion menu. 

You can see it live here

Full sources are available here

This is how you add it to the page:

Java
[sourcecode language='java']
		Map menus = new LinkedHashMap();
		menus.put(new AccordionLink("Menu1", "http://www.menu1.com"), 
				Arrays.asList(
						new AccordionLink("11", "http://www.menu11.com"),
						new AccordionLink("12", "http://www.menu12.com"),
						new AccordionLink("13", "http://www.menu13.com")));
		menus.put(new AccordionLink("Menu2", "http://www.menu2.com"), 
				Arrays.asList(
						new ...</description>
		<link>http://www.dooriented.com/blog/2009/05/11/wicket-component-jquery-accordion-menu/</link>
			</item>
	<item>
		<title>How to prevent IFrame to display your website</title>
		<description>If you don't want your webpage to be displayed inside another website, in an IFrame, use this:

[sourcecode language='php']



[/sourcecode] </description>
		<link>http://www.dooriented.com/blog/2009/05/08/how-to-prevent-iframe-to-display-your-website/</link>
			</item>
	<item>
		<title>Java interface contract</title>
		<description>Suppose you have an interface defined like this:

interface someInterface {

Object someMethod(Object someObject);

}

First thing you have to know is that interfaces are only public if you define them as such. If you don't they can only be implemented by classes in that package. 

Just like the interfaces themselves, the methods defined ...</description>
		<link>http://www.dooriented.com/blog/2009/05/08/java-interface-contract/</link>
			</item>
	<item>
		<title>How to get IP address in PHP</title>
		<description>Using getenv:

[sourcecode language='php']

[/sourcecode]

Please note that the function 'getenv' does not work if your Server API is ASAPI (IIS). In this case use $_SERVER["REMOTE_ADDR"].

Here is an interesting function to get the real IP address:

[sourcecode language='php']
function getRealIpAddr()
{
if (!empty($_SERVER['HTTP_CLIENT_IP']))   //check ip from share internet
{
$ip=$_SERVER['HTTP_CLIENT_IP'];
}
elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))   //to check ip is ...</description>
		<link>http://www.dooriented.com/blog/2009/05/07/how-to-get-ip-address-in-php/</link>
			</item>
	<item>
		<title>The Simpsons + Apple = Mapple</title>
		<description>





 </description>
		<link>http://www.dooriented.com/blog/2009/05/06/the-simpsons-apple-mapple/</link>
			</item>
	<item>
		<title>IBM and Southpark</title>
		<description>These days there is the Smart SOA Conference in Las Vegas. Look how the commercial for that looked like:


 </description>
		<link>http://www.dooriented.com/blog/2009/05/05/ibm-and-southpark/</link>
			</item>
	<item>
		<title>Allow / Deny IP access using Apache HTTP Server</title>
		<description>In order to limit access to your application deployed on an Apache HTTP Server, you just have to edit one file : httpd.conf.

For example please take a look at the following settings :
[sourcecode language='xml']

Options Indexes FollowSymLinks MultiViews Includes
allowOverride All
Order allow, deny
allow from 127
allow from 192.168.1.0/24

[/sourcecode]
This will allow access to "yourapp" ...</description>
		<link>http://www.dooriented.com/blog/2009/05/04/allow-deny-ip-access-using-apache-http-server/</link>
			</item>
	<item>
		<title>Limit IP access to your web application using Apache Tomcat</title>
		<description>It is possible that you'd like to limit access to your web application from some IPs, to enhance security. If your application is deployed on Apache Tomcat, you can do that pretty darn easy - you just have to edit the server.xml file.

For example :
[sourcecode language='xml']

    
 ...</description>
		<link>http://www.dooriented.com/blog/2009/05/04/limit-ip-access-to-your-web-application-using-apache-tomcat/</link>
			</item>
	<item>
		<title>MySQL multirow inserts</title>
		<description>I was surprised to see how few people know that in MySQL you can do :

INSERT INTO tbl_01(id, name) VALUES (1, 'One')

INSERT INTO tbl_01(id, name) VALUES(2, 'Two')

But also

INSERT INT tbl_01(id, name) VALUES

(1, 'One'), (2, 'Two')

In practice it is very useful. </description>
		<link>http://www.dooriented.com/blog/2009/05/03/mysql-multirow-inserts/</link>
			</item>
</channel>
</rss>
