Archive for the 'Development' Category

JSP ile JSF farkları

Tuesday, February 26th, 2008

the difference between JSP and JSF:

1. A developer has more control with JSP, but (should) get easier development with JSF
2. Event handling is done differently in JSP (HTTP) and JSF (Java)
3. The UI is designed differently (or should be at least) with JSP (markup) and JSF (components).
4. The end product should also be defined differently - JSP page versus a JSF application.
Is this the only thing that is need to make a decision for either or? Probably not. There are other pieces that need to be taken in account when deciding which technology to use - tools support, enough components, type of application etc…. At this point there are not enough JSF components (although there are some interesting projects underway - Ajaxfaces, Myfaces, ADF Faces, and WebChart 3d) and enterprise tools support is still limited to a few tools vendor. Looking at our ADF Faces components they are currently available as early access (not production) and demands for these components are stacking up, literally, outside my office doorstep. Although I would love to make them production - now! - it is not a viable solution since we are still checking features and fixing critical bugs.
All this combined - not enough enterprise level components in production, lacking tools support etc… - leave customers in a vacuum where the decision is either to continue with JSP, since it is mature and has a wide developer base, or move forward with JSF not sure if the support, or the developers will be there. This is particularly sensitive to customers that need to get started now and be production by summer.
If you are in this vacuum here are some key points promoting JSF:
1. Fundamental unit is the Component
2. Built in event and state management
3. Component sets can be provided by any vendor
4. Closer to ASP.Net or Swing development
5. Choice of UI technology
6. Scale up (rich clients)
7. Scale down (mobile devices)
8. Built into J2EE containers in J2EE 5.0 (tentative)

asker kontun Dağıtımı

Thursday, September 20th, 2007

Acemi birliğini tamamlayan kontun dağıtımı kıbrıs 39.tümene çıkmış adam adayı çok sevdi her yerde oraya çıkıyo bu gidişle oraya yerleşecek zindan şaplanma fazla ( kesin tankla falan gelir şimdi bu askerden yakışır ).Hayırlı teskereler.

executing pl/pgsql function in postgre and java

Thursday, September 20th, 2007

CREATE OR REPLACE FUNCTION squre_root(integer)
RETURNS double precision AS
$BODY$
BEGIN
return SQRT($1);
END; $BODY$
LANGUAGE ‘plpgsql’ VOLATILE;
ALTER FUNCTION squre_root(integer) OWNER TO hede;

to execute this procedure in pgadmin  : select squre_root( 9 );

import java.sql.*;

public class PlSqlTest {
public static void main(String args[]) {
CallableStatement stmt = null;

int a=9;

System.out.println(”\nArray Parameter Test\n”);
try {
Class.forName(”org.postgresql.Driver”);

Connection conn = DriverManager.getConnection(”jdbc:postgresql://localhost/hede”, “hede”,”hede”);

conn.setAutoCommit(false);
stmt = conn.prepareCall(”{?= call squre_root(?)}”);
stmt.registerOutParameter(1, java.sql.Types.DOUBLE);
stmt.setInt(2, a );
stmt.execute();
double result = stmt.getDouble(1);

System.out.println(”\nThe result is ” + result);

conn.close();
}
catch (SQLException se) {
System.out.println(”\nA SQL exception occurred.”);
System.out.println(”\nError code: ” + se.getErrorCode());
System.out.println(”\nSQL state: ” + se.getSQLState());
se.printStackTrace();
}
catch (Exception e) {
System.out.println(”\nSome other exception occurred.\n”);
e.printStackTrace();
}
}
}

openCDS device Management

Thursday, September 6th, 2007

Open cds can dedect device type and automaticaly generates,imports configuration file on opencds Device Creation if a new device is detected, and autoCreate is false the subscriber will be given a “Device Not Supported” message. If autoCreate is true, we’ll gather as much info as possible from the UAProf and populate the device repository. New devices may be quarantined -meaning they can’t be used by subscribers until an administrator processes them in the Catalog Server.A notification email can be sent when a new device is created. If left blank, no emails will be sent.

autoCreate.newDevice=true

quarantine.newDevice=false

newDevice.notification.emailAddress=email@dns

Note:This autoCreate process doesn’t work properly.like Nokia N80 or N73 ,we expect to see openCDS 5.1 version (may be released in September 2007 ).

If you create your application using XMLRPC This can not include create method.

we solve this problem add a jsp file to subscriberportal to compile this jsp use subscriberportalapi.jar.

<%@page import=”com.sun.content.server.subscriberapi.ISystemService”%>
<%@page import=”com.sun.content.server.subscriberapi.ApiServiceFactory”%>
<%@page import=”com.sun.content.server.subscriberapi.IModel”%>
<%@page import=”com.sun.content.server.subscriberapi.ApiUtil”%>
<%@page import=”com.sun.content.server.server.webapps.common.UIHelper”%>
<%@page import=”com.sun.content.server.subscriberapi.IApiContext”%>

<%
String userAgent = request.getHeader(”user-agent”);
System.out.println(”Model Created info:Starting!!!”);

//while using webbrowser it creates more than more mozilla device types

if (!userAgent.startsWith(”Mozilla”)){
try{
ApiUtil.initTransaction();
UIHelper.configureAPI(request);
IApiContext apiContext = UIHelper.getApiContext(request);
UIHelper.configureAPIRequest(apiContext);
ISystemService ss = ApiServiceFactory.getSystemService(null);
IModel newModel = ss.createModel(request);
System.out.println(”Model Created info:Stopping !!!”);
}
catch(Exception e){
e.printStackTrace();
}
finally{
ApiUtil.commitTransaction();
}
}%>

Use redirection turn back to your aplication. this is a nail ( Turkish called ” çakma “) solution.

Common Lisp

Friday, August 3rd, 2007

In 1995,
the American National Standards Institute recognized a slightly updated version as ANSI
Common Lisp, the first object-oriented language to receive certification, and ANSI CL remains
the only language that meets all of the criteria set forth by the Object Management
Group (OMG) for a complete object-oriented language.
1-Dynamic Redefinition: You can add new operations and functionality to the running
CL process without the need for downtime. In fact, a program can be running in one
thread, while parts of the code are redefined in another thread. Moreover, as soon as
the redefinitions are finished, the application will use the new code and is effectively
modified while running. This feature is especially useful for server applications that
cannot afford downtimes – you can patch and repair them while they are running.

Java Manyakları Org

Thursday, July 19th, 2007

Bizim cellenityden Hakan İlterin ve manyakları olarak Bir grup kurmuşlar java.manyaklari.org Java ile ilgili vede her türlü manyaklığa açık bir bilgi paylaşım ortamı.

Doğum Günü tebriği:Tarık Özkanli

Wednesday, July 4th, 2007

Takım kaptanım Tarik özkanlının 31 nolu yaşını kutladık.Sağlıklı,mutlu,huzurlu nice yaşlarda ihtiyarlayasın Diyorum.Doğum Günün kutlu olsun Ejder.

Sayısala adım adım

Wednesday, July 4th, 2007

30 Haziran çekilişinde 4 rakam denk gelmiş 2 daha kalmış adım adım 6 ya ilerliyorum sırada 5 var.

8-12-18-22-27-37  benim kuponda 12-18-22-37 mevcut çıkmış. 20,529 arasına girmişim 17,85 YTL ikramda bulunmuşlar.

Yeditepe Zaferi

Monday, June 25th, 2007

pazar günü maça 5 aslan çıktık maç kafa kafaya gitti.Maçın hakemi bize bol miktarda Sportmenlik faul çaldı.3 periyotta öne geçtik Sportmenlik faul çaldı 2 sportmenlik olduğu için bir oyuncumuzu attı derken başkan kaptan serdar 5. faul  aldı ve oyun dışında kaldı.Hakemin bu kararına çok sinirlenen serdar hakem maçı bok ettin der hakem bunu üzerine maça ara verir bench’e 2 teknik faul verdi maç 52-53 bu arada Yeditepe önde, 20 dk bekledikten sonra maça 3 kişi devam eden yeditepe kaplanları yaptıkları savunma ve ele geçirdikleri fastbreak fırsatlarını iyi değerlendirip maçı 61-66 kazanmasını bildi.

Megoloman Statistics:Maçı 13 sayı ile tamamladım. yaptığı asistin hadi hesabı yok :)

Yeditepe’li Göbekler

Sunday, June 24th, 2007

Hazin son perşembe günü Yakacıkta oynadığımız Suadiye maçını 63-36 kaybettik.5 kişi çıktığımız maçta götümüzden soluyarak tamamladık idmansız vs… iyi bir maçtı.Dostluk kazandı :).

Bugünde Yine yakacık İTO salonunda Koşuyoluyla 5 kişilik takım olarak çıkacağız umarım.maçın detayları akşama;