By admin,on September 26th,2010 I have been looking for a way to style the file input. After examining a few examples on the web like this and this. I decided to twist both approaches to have a really simple way to make a file input look like a button. Here is my way:Firstly style a div to . . . →Read More:Styling Input Tag of Type File By Cihan Çimen,on August 10th,2010 I took a look at OSGI DS and was curios about how to create a hello world bundle to run on Apache Felix. After a little search i decided that it would be a good opportunity to learn basics of maven 2. I checked out one of the projects at apache incubator svn and . . . →Read More:Introduction to OSGI Declarative Services using Apache Felix By admin,on March 21st,2010 I realized in some part of a program of mine following statements print False: 12345#coding = utf-8 turkishConsonants = [’b',‘c’,‘ç’,‘d’,'f’,'g’,'ğ’,'h’,'j’,'k’,'l’,'m’, ‘n’,'p’,'r’,'s’,'ş’,'t’,'v’,'y’,'z’]word = "ağla"print word[-3]in turkishConsonants The reason for this was the letter ‘ğ’is stored as two array elements and word[-3] returns only half of it. Proper . . . →Read More:Character Comparison Problem –Python By admin,on February 12th,2010 To create custom Java events we need basicly three classes: The event class which will be fired An interface which indicating responsibility of event listeners of this event The class which fires the Java events When these classes are prepared,other classes can subscribe to events by providing their event listener. An event class must . . . →Read More:Custom Java Events By admin,on February 10th,2010 I have coded another helper program to a popular game using Robot class of Java. In this game,players are trying to score baskets in a 2d pitch by shooting the ball random positions to a basket of which position remains unchanged. The players only decide highest point of the path of the ball. By . . . →Read More:Basketball Game:Robot (www.onlinegames.com/basketball/) By Cihan Çimen,on February 9th,2010 Here is a simple example to understand the meaning of DL Safety. In a DL Safe rule execution,only explicitly named individuals are bound to the variables in the rule. Lets say we have a transitive object property named ancestorOf. Can we simulate this transitivity using a DL-Safe SWRL rule rather than defining the ancestorOf . . . →Read More:DL –Safe SWRL Rules on OWL DL Ontologies with Pellet By Cihan Çimen,on February 7th,2010 When operations on different character sets need to be done in Java,we need to initialize JVM with required options. First lets have a look at basics of java character encodings. Internally the JVM always operates with Unicode. Data transferred in or out of the JVM is converted to a format specified in the file.encoding . . . →Read More:Setting Java Character Encoding By Cihan Çimen,on January 15th,2010 Remoting Object Service of BlazeDS ,is used for making remote procedure calls from Flex applications to Java Server. Having BlazeDS deployed on an application server (Tomcat is used here) ,following steps shows the server and client side coding for a simple scenario where a flex application is used to display instances of Person . . . →Read More:BlazeDS –Remote Object Service Tutorial By admin,on January 15th,2010 Too many clicks are needed while playing games like farmville. To this automatically,firstly I used a tool named xdotools which generates false keyboard and mouse input. But,since xdotools only supports X11,I switched to Java to have a platform independent program. java.awt.Robot class can be used to generate false input in Java. You . . . →Read More:Farmville:Clicking Robot By admin,on January 13th,2010 While dealing with lambda calculus expression that I mentioned in my previos post,from time to time many paranthesis appears. Exampli gratia:While trying to SKI equivalent of λx.λy.+ x y, intermediate expressions like S (S (K S) (S (K (S (K +))) (S (λx K) (λx x)))) (λx I) can be encountered. While dealing . . . →Read More:Dealing with lots of paranthesis… | | |