- Add following dependency into your pom.xml:
<dependency> <groupId>com.github.gwtbootstrap</groupId> <artifactId>gwt-bootstrap</artifactId> <version>2.2.1.0</version> <scope>provided</scope> </dependency> - Add following repository into your pom.xml
<repository> <id>sonatype</id> <url>http://oss.sonatype.org/content/repositories/snapshots</url> <snapshots><enabled>true</enabled></snapshots> <releases><enabled>false</enabled></releases> </repository>
- Run following maven command to download dependencies:
mvn process-resources
- Add following module dependency to your *.gwt.xml file.
<inherits name="com.github.gwtbootstrap.Bootstrap" />
-
Add following script inside your module start page's HEAD section
<head>
<!-- before your module(*.nocache.js) loading -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" href="{your module name}/css/font-awesome-ie7.css">
<![endif]-->
<!-- your module(*.nocache.js) loading -->
</head>
29 Ağustos 2013 Perşembe
gwt-bootstrap Lazy Developer's Guide
25 Ağustos 2013 Pazar
How to Bind Port 80 to Tomcat 7 in Ubuntu
Default tomcat installation uses 8080 port. This is not preferred way when you present your web application over a top-level domain. I needed this information for my new sites gamenism.com/game and onlineuml.net/modeler. Below I am describing how to bind port 80 to Tomcat 7.
- Backup /var/lib/tomcat7/conf/server.xml
- Open /var/lib/tomcat7/conf/server.xml for editing. Find the part beginning with "<Connector"
As highlighted below, change the value of port attribute to 80.
<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000"
URIEncoding="UTF-8"
redirectPort="8443" />
- Backup /etc/default/tomcat7 file
- Open /etc/default/tomcat7 file for editing.
- Find the line containing "AUTHBIND" property. This line should be commented. Uncomment it.
- Set AUTHBIND property to YES. This is required to bind a port to a process which is less than 1023.
AUTHBIND=yes
- Restart tomcat 7
sudo /etc/init.t/tomcat7 restart
6 Haziran 2013 Perşembe
Browsing All Visio 2010 Shapes as a Document
http://viziblr.com/news/2012/3/10/browsing-visio-2010-stencil-shapes-as-a-document.html
Visio shapes can be found under "C:\Program Files (x86)\Microsoft Office\Office14\Visio Content\1033" folder.
1 Haziran 2013 Cumartesi
How to Download Sun Jars in Maven Projects
Sun jars cannot be hosted in Maven central repository due to Sun's Binary License, e.g:
java.net provides a Maven repository to access Sun jars. It is a good practice to add following repository in your settings.xml file:
More details can be found at:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
- javax.sql:jdbc-stdex
- javax.transaction:jta
- javax.activation:activation
java.net provides a Maven repository to access Sun jars. It is a good practice to add following repository in your settings.xml file:
<repository>
<id>maven2-repository.dev.java.net</id>
<name>Java.net Repository for Maven</name>
<url>http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
More details can be found at:
http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html
Create User In Mysql
Parameters:
username = 'mehmet'
host = 'localhost'
password = 'mypass'
SQL command which creates a user based on above parameters:
CREATE USER 'mehmet'@'localhost' IDENTIFIED BY 'mypass';
31 Mayıs 2013 Cuma
Connect MySQL From External Hosts
Edit the /etc/mysql/my.cnf file and change the bind-address directive to the server's IP address:
bind-address = 127.0.0.1
After changing bind-address directive to server's IP address in /etc/mysql/my.cnf, MySQL daemon will need to be restarted using following command:
sudo service mysql restart
3 Aralık 2012 Pazartesi
Image Processing In Java
Debojyoti Majumder posted a fairly nice Image Processing Tutorial videos in Youtube:
http://www.youtube.com/view_play_list?p=BF587ED1F7B44361
But Debojyoti probably has forgotten to post the source code somewhere on the net:). I have uploaded the source code as a Maven project. You can downloaded the zipped project using following link.
https://docs.google.com/open?id=0BzOP9iB5jL6fMFJISDY4bjA5eUk
http://www.youtube.com/view_play_list?p=BF587ED1F7B44361
But Debojyoti probably has forgotten to post the source code somewhere on the net:). I have uploaded the source code as a Maven project. You can downloaded the zipped project using following link.
https://docs.google.com/open?id=0BzOP9iB5jL6fMFJISDY4bjA5eUk
Kaydol:
Kayıtlar (Atom)
