En çok sevdiğim çatılardan biri olan JRebel, ücretsiz lisans dağıtmaya başladı. https://social.jrebel.com/ adresinden facebook veya twitter hesabınızla giriş yaptıktan sonra lisansınıza kavuşabilirsiniz. Tabi bu lisans sadece evde kullanmalık yani ticari ürün geliştirmek için değil. Devamlı derle-paketle-sunucuya koy gibi döngülerden sıkılan geliştiriciler için en etkili çözüm. Ayrıca JRebel forumlarında sorularınıza hemen cevap bulabiliyorsunuz. Benim gibi Java'ya gönül vermiş arkadaşlara şiddetle tavsiye ederim.
Yıllarca aynı ofiste birlikte çalıştığım biricik arkadaşım Tevfik'in KODLAB Yayınlarından Java ve Java Teknolojileri adlı bir kitap çıkardığı haberini aldım. Bu başarısından dolayı kendisini kutlarken ne kadar mutlu olduğumu anlatamam =) Hantal bir işleyişe sahip bir yerde kendini araştırmaya ve çalışmaya veren biri için tesadüf olmayan bir başarı!
Almak için ;)
tıklayınız
PrimeFaces and RichFaces Integration
Popular JSF component suites PrimeFaces and RichFaces can be used together with no problems. If you have a Seam-Gen project or a RichFaces project, you can follow these steps.
Firstly,
With Seam 2.2 and JSF 1.2,
Used JARs :
primefaces-1.0.0-SNAPSHOT.jar
richfaces-ui-3.3.2.GA.jar
richfaces-impl-3.3.2.GA.jar
richfaces-api-3.3.2.GA.jar
slf4j-api-1.5.8.jar (Not Needed for PrimeFaces >= version 0.9.3)
slf4j-jdk14-1.5.8.jar (Not Needed for PrimeFaces >= version 0.9.3)
You can find and download these jars at www.findjar.com
Also some modifications are needed on web.xml
Just add this code snippet into web.xml
< servlet>
< servlet-name>Resource Servlet
< servlet-class>org.primefaces.resource.ResourceServlet
< load-on-startup>1
< /servlet>
< servlet-mapping>
Resource Servlet
< url-pattern>/primefaces_resource/*
< /servlet-mapping>
I advice you to use Facelets. The reason is here.
After the modifications in web.xml, You must declare primefaces tag library in pages as shown below
xmlns:prime="http://primefaces.prime.com.tr/ui"
< prime:resources/>
to reach PrimeFaces's JSs and CSSs.
Finally,
PrimeFaces and Seam are ready for serving :)
You can check PrimeFaces ShowCase and RichFaces LiveDemo for how to use components.
Finally,
PrimeFaces and Seam are ready for serving :)
You can check PrimeFaces ShowCase and RichFaces LiveDemo for how to use components.
Prevent RichFaces ModalPanel from Closure
If you want to prevent rich:modalPanel from closure when an error message occurs, you should follow this cheat :)
By using a4j:commandButton "data" property, you can set number of FacesMessages into "data". Checking "data" property in JavaScript can control ModalPanel's closing event.
< a4j:commandButton value="Do Something and Close" action="#{fooBean.doSomething}"
data="#{facesMessages.currentMessages.size()}"
oncomplete="if (data == 0) Richfaces.hideModalPanel('modalPanelID');" />
In this example no success message should be sent with FacesMessages :)
Another solution : ModalPanelValidation
How to Measure Code Lines in a Project (cursory)
Just change projectFolderPath variable's value
import java.io.File;
import java.io.FileFilter;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.LineNumberReader;
public class LineCounter {
private static String projectFolderPath = "/home/anyuser/projectFolder"; //"C:\\projectFolder";
private static int totalLineCount = 0;
public static void main(String[] args) {
File projectFolder = new File(projectFolderPath);
lineCountFromFile(projectFolder);
System.out.println(totalLineCount);
}
public static int lineCountFromFile(File file) {
int linecount = 0;
if (file.isFile() && file.canRead() && !file.isHidden()) {
try {
FileReader fr = new FileReader(file);
LineNumberReader ln = new LineNumberReader(fr);
while (ln.readLine() != null) {
linecount++;
}
ln.close();
fr.close();
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
} else {
File[] files = file.listFiles(new LineCounter.ProjectFileFilter());
for (int i = 0; i < files.length; i++) {
lineCountFromFile(files[i]);
}
}
System.out.println(file.getAbsoluteFile() +"'s line count \t"+ linecount);
totalLineCount += linecount;
return linecount;
}
static class ProjectFileFilter implements FileFilter {
private final String[] okFileExtensions = new String[] { "java",
"jspx", "jspa","xhtml", "xml" };
@Override
public boolean accept(File file) {
for (String extension : okFileExtensions) {
if (file.getName().toLowerCase().endsWith(extension)
|| file.isDirectory()) {
return true;
}
}
return false;
}
}
}
Would you like to test your code online?
Yes online. ideOne promises this. You can try 38(still growing) different programming languages just using your browser. You can share your code with links. I wrote a infinite-loop in C to test C compiler and saw that there is a time-limit :) Also you can run your codes with your own data inputs. Just try and see the results :)
ASUS AAM6000UG USB Adsl Modem Windows 64-bit Driver
My AirTies RT-211 ADSL modem is broken down at Saturday. I called AirTies Customer Service. The guy on the phone was so polite and helpful. After trying to reset modem, nothing was changed. The AirTies man gave me a repair tracking number. I sent the modem to AirTies Repair Center. Today(After 3 days) I checked modem repair status and saw that a new modem has been sent to my address. Thanks AirTies for responsible approach to its customers :)))
Without my adsl modem, I could not connect to internet. I remembered that I had bought an ASUS AAM6000UG USB Adsl Modem. But It has no Microsoft Vista 64-bit driver :((
After a few minutes, A smart idea found me :)) "If I connect AAM6000UG to a virtual machine which has Windows XP by using USB port, I can use AAM6000UG Windows XP driver easily." I have built this system and now I can connect to internet :)))
I wanted to share guest OS's internet connection with host OS . I tried to add default gateway as guest IP address to host OS. But nothing was changed. Internet connection on guest OS is just enough until my new AirTies will come.

