Monday, December 28, 2009

Do You Get A Cold With Hiv

It surprises coming!

After more than a year's break (thanks Alfredo for the spelling:)) I have decided to return to share music with you: D I hope to be welcomed back among the bloggers and every one of you to wear the page. The final return will be from the second week of January 2010, so you have time to reupload records in high demand and also share new things.

soon and that 2010 is the best for everyone! Stamina

Metal! : D


Atte, Pathfinder.

Monday, December 14, 2009

Dr. Seuss Birthday Invitations

Moving Blog





Blog has been moved to the following address:

Thursday, September 3, 2009

Multi Flash Reader Usb Device Sterownik

HermesJMS Configuring to work with Tibco

I assume That Tibco you have installed in \u0026lt;TIBCOHOME>

1) Download & install HermesJMS . I assume \u0026lt;HERMES_HOME> That is the installation directory for Hermes.
2) Copy \u0026lt;TIBCOHOME> / ems / clients / java / *.* into \u0026lt;HERMES_HOME> / lib . There is no need to overwrite existing files.
3) For next steps, there is a presentation prepared here and we will follow it with the following note: See the first step of the presentation, then stop and come back here :) In the first step the presentation shows already prepared, long list of providers. To work with Tibco, we will only need one provider, which we have to add manually. To add a provider, go to Providers tab in Preferences dialog, right click under Classpath Groups, select Add Group and type the name (i.e. Tibco Ems). When the provider appears on the list, expand it's subtree to see The Library item. Right click on Library and select Add JAR (s) . Add all JARS in \u0026lt;TIBCOHOME> / ems / clients / java directory . Click Apply, then OK to close Preferences window. Continue with step 2 of the presentation.

In Step 3, do not be surprised if just after Selecting the Loader from the dropdown list, the list will disappear. It actually did dissapear, it's just behind the right edge of the dialogue, and you can see it again, if you resize the dialog.

Good luck!

Monday, August 31, 2009

How To Build A Limber Jack Doll

JDK5, Ubuntu and Summer Time

To begin with I'm just when switching to Linux, specifically Kubuntu.

first encountered a serious problem which relates to the time zone observed by Jave. Configuration:

1) JRE6 installed "the package" (using aptitude) to use it to run Javowe tools, applets in the browser, etc.
2) JDK5 downloaded from the Sun and unzipped. It is used for development purposes. Here JAVA_HOME points.

The problem is that the Java JDK did not include DST offset (in the installed "the package" Java is OK). After several hours of hair from the head stutter found this bug notification . The title refers to what the truth of JDK6, but as it turns out also fits version 5 I made a slight change from what I described, namely:
 
sudo cp / etc / localtime / etc / localtime.bak
sudo ln-s-f / usr / share / zoneinfo / Europe / Warsaw / etc / localtime and
the problem. Weird ...

PS IM
What do you recommend? The best would be something that can handle both mail and Jabber.

Wednesday, August 12, 2009

Dowland Free Mount Blade Demo

Testowalny

We cucumber season, so only a brief post about what is extremely important, even on vacation. Misko great article titled Hevery Writing Testable Code. Article refers to the mini-books PDF format containing practical examples of how an existing bad code led to some reasonable and testable form. The authors use Guice framework , but conceptually the proposed solutions are universal.
also plan to look at the project Testability Explorer , co-authored by Misko, and that allows you to analyzing the code in terms of testability (static analysis bytecodu of what the fast I read.) For now, I downloaded the source, and I saw with my own eyes that the possibilities offered by Guice are really very interesting.

Have fun!

Tuesday, July 7, 2009

Gamestop Bluetooth Store Credit

code Manifesto for Software craftsmanship




There is no turning back:) Aware of the rights and duties, full of desire to continually improve their craft today signed a manifesto . What also strongly encourage you, if you are not alien to preserve the quality of your work.

Sunday, July 5, 2009

Why Does Blood Gush During Period

Javarsovia 2009 for us

Largest free conference of the Polish community javowej unfortunately for us. Unfortunately, I am writing because this event was an undoubted success and would like to have such conferences every week;) At Javarsovii could see interesting presentations and sometimes it was hard to me to decide who lecture about the time you choose. I feel sorry for a few lectures that I was forced to miss - I hope that the organizers quickly make available videos of the conference and will be able to make up for that loss. In particular, I regret the lecture Stephen Fabra on testing - about this for some time more and more addictive and yesterday I do not know why I went to Cloud Computing, which quite frankly a little disappointed ... Has ever participated in (a sensational anyway) Stephen presentation on Mockito (unless it was on JDD) and this time I thought that it was also by Mockito - that's why I chose another lecture ... I missed the presentation Lukasz Lipka our home Silesia JUG on Mule ESB. Luke has already said once about Mule JUG meeting, although certainly Javarsovii expanded the already interesting presentation ;)

It is now something of lectures in which I was:) mention three that made the deepest impression, have provided much new knowledge - the choice of course, subjective.

Konrad Kaminski presented Garbage First - a new garbage collector in the HotSpot machine. Honestly, before the lecture that I had no idea how the internal algorithms GC and Conrad gave a lecture a lot of light on this important topic. New GC looks interesting, and the possibility of determining how much time can occupy up to his job in a given section time server applications is very desirable.

Another great lecture was a lecture Jaroslaw Kijanowskiego on Drools Guvnor . Subject close to me personally because I am using Drools project you are currently working on. Jared led a very interesting presentation, a loose way, and - as it should be stressed - missed a lot of unnecessary technical details from the point of view of the merits were irrelevant subject and only zaciemniłyby image. Unfortunately, this skill is still missing many Polish speakers who are able to overwhelm the listener pouring tons XMLi with the projector ... In addition to Guvnor'a Jared also presented Drools CEP (Complex Event Processing) which allows you to make decisions not only based on current facts, but also "looking back" (ie the last 10 events, the events of the last 20 minutes) - an interesting case. I have not tried yet to use Drools CEP, but it seems that it can be a free, open source competitor to Oracle CEP.

last lecture which was picked up Spring Framework TestContext James Milkiewicza . Very, very interesting lecture led in great style. Audience even demanded the extension of the presentation and submit a few more examples. So far, I used a small part of this mini-framework, but after this lesson, for sure this will change. I have to also look HamCrest 'those which James used to make assertions.

digression at the end of the conference. The fact that the organizers of the conference FREE organized FREE lunch for all participants - it's like for me (as a starveling) world championship! In addition, there were things in general which could be przeczepić :) Lectures Interestingly, the stomach is full, good rooms, quite location, good visibility, etc, etc. Podnieśliście bar Gentlemen!

Thursday, June 11, 2009

Cruise Spots Los Angeles

Pragmatic Programmer

I just finished reading the book "pragmatic programmer. From journeyman to master" . I will not be alone when I say that every programmer should read this book. This post is a grouping of terms and principles, which for me personally was the most interesting science that comes from the reading. Most of them are familiar, but I think so important to once again be said of them, and underscore their importance.

broken window when the block will be a broken window and no one is not fast enough to fix that soon there will be further broken windows and other signs of progressive destruction. The same principle applies to the source code - do not leave their systems smashed windows (bad code, antywzorce, incorrect design decisions, work-around'y). Do not allow the creation of "pockets of decay" of your system.

Orthogonality

Moving along the vertical axis, the projection of current location on the horizontal axis does not change. That should be designed systems: changes in module A should not be seen by module B. Both modules need to communicate through well-defined interfaces and implementation details should be hidden so that each of the modules could be modified or even replaced without need for change in other modules.

Law of Demeter (the principle of minimum knowledge)
In a nutshell: you can talk only with the objects of their own environment. Do not pull out of these other sites ("Guts") to talk to them (this would be the penetration of the implementation). Let the parent object will delegate the call accordingly, deciding he wants to achieve a specified goal. Instead of:
 car.getOnboardComputer (). GetGPS (). GetLocation (); 
write
 car.getLocation () 
leaving the Car class decide how to implement a determination of the location.

Missiles streak
authors called this technique is somewhat similar to the prototype, which recommends the creation at the beginning of a very poor solution, but going through all the layers and as a basis for further development of the system. Unlike the prototype, the solution is not going to trash after verifying that it works, but it becomes an integral part of the system, around which new functionalities are created until the completion of the project. Name tracers comes from the fact that the developed code can determine whether the project goes to the purpose "that goes in the right direction at the beginning, having implemented with only the smallest possible part of the functionality. Today in the era of agile , unless widely used technique;)

Reversibility Make decisions
reversible. Prepare yourself for the fact that the customer wishes to change the version, or even a database, application server, etc. ...

Programming accidental
Fred does not know why the program does not work, because they did not know why the program worked.

Meet API
and technologies you use, not to create a code at random, the code that works by accident .


Unit Testing is like testing integrated circuits - the signals are submitted to the relevant entry causes the corresponding states outputs.

DRY
On this principle I will not repeat:)

Thursday, May 21, 2009

Can You Pack Shampoo In Checked Luggage

JBoss Drools - operating the application in 10 minutes

decided to create a minimal application that uses JavaSE JBoss Drools rules engine and decision tables stored in the form of Excel spreadsheets. Here I present my results. The most important guideline when creating this application was simple to see what the minimum steps necessary to run Drools. Therefore, the application is devoid of error checking, validation parameters, etc - not what is meant here.

Well this is explained - Now to work:)

Start by creating a board decision:
basic notion of decision-making in the subject arrays is that - for our purposes we can define this concept as an object Javowy placed in working memory (working memory) of the engine rules during its startup, or created "inside the engine" as a result of the actions of either rule. In our example, there are only facts contained in the working memory "from the outside." Facts have attributes, which in our case the characteristics (properties ) Javowych objects. Drools allows you to create the conditions for a specific field value of the object - of course we have to stick to the JavaBeans conventions.

table definition starts with the text in the cell marked RuleTable . The next line, type the headings indicating the role of the column in the table - condition (condition) or action (consequence, action). The next two lines are used to define the details of the condition or action. The condition may be, for example the existence of a fact (cell B9) or a specific attribute value of fact (cell C8 and C9 - here we refer to the attribute value name fact type Activity and the subsequent rows are potential values \u200b\u200bof this field). The table contains two rules (lines 11 and 12):
  1. there and there is a Student Activity called fun
  2. there and there is a Student Activity called learning
For both rules, there is joint action, defined as a fragment of Java code - add a string in the list. $ Param is the value of the selected cell as the intersection of the current column (shares) and the line is running normally. So if the rules engine is powered by the fact Student Activity and the fact Attribute name equal learning - then the shares will be launched first rule. If further appears that Activity Attribute name = fun , shares will also be running a second rule. Some facts contained in working memory (working memory) rules engine may run multiple rules. More detailed information can be found in the documentation . Noteworthy section yet Variables, which allows you to define variables. This allows for very simple actions returning results rules - rules engine running, you can use the method setGlobal pass an object reference Javowego to represent a given variable is defined in the rules. In our example, to return the list as a result of the design rules apply:
 ... Letter 
rulesEvaluationResult = new ArrayList ();
statelessDroolsSession.setGlobal (resultList "rulesEvaluationResult);
Uruchom_reguły

After its execution rulesEvaluationResult contains the output of the rules or what the array is put into the decision-making variable resultList .

you already have a ready decision table, we can begin to create applications. Start by creating a project using Maven'a:
 mvn archetype: create-DgroupId = pl.kadamczyk.droolssample-DartifactId = DroolsSample 

Edit your pom.xml so that they are in the following relationships:
 \u0026lt;Project xmlns = "http://maven.apache.org/POM/4.0.0" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" 
xsi: schemaLocation = "http:// maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd ">
\u0026lt;modelVersion> 4.0.0 \u0026lt;/ modelVersion>
\u0026lt;groupId> pl.kadamczyk.droolssample \u0026lt;/ groupId>
\u0026lt;artifactId> DroolsSample \u0026lt;/ artifactId>
\u0026lt;packaging> jar \u0026lt;/ packaging>
\u0026lt;version> 1.0-snapshot \u0026lt;/ version>
\u0026lt;name> ; DroolsSample \u0026lt;/ name>
\u0026lt;url> http://maven.apache.org \u0026lt;/ url>
\u0026lt;dependencies>
\u0026lt;dependency>
\u0026lt;groupId> Junit \u0026lt;/ groupId>
\u0026lt;artifactId> Junit \u0026lt; ; / artifactId>
\u0026lt;version> 3.8.1 \u0026lt;/ version>
\u0026lt;scope> test \u0026lt;/ scope>
\u0026lt;/ dependency>
\u0026lt;dependency>
\u0026lt;groupId> org.drools \u0026lt;/ groupId>
\u0026lt;artifactId> drools-core \u0026lt;/ artifactId>
\u0026lt;version> 4.0.7 \u0026lt;/ version>
\u0026lt;/ dependency>
\u0026lt;dependency>
\u0026lt;groupId> org.drools \u0026lt;/ groupId>
\u0026lt;artifactId> drools-compiler \u0026lt; ; / artifactId>
\u0026lt;version> 4.0.7 \u0026lt;/ version>
\u0026lt;/ dependency>
\u0026lt;dependency>
\u0026lt;groupId> org.drools \u0026lt;/ groupId>
\u0026lt;artifactId>-decisiontables drools \u0026lt;/ artifactId>
\u0026lt; version> 4.0.7 \u0026lt;/ version>
\u0026lt;/ dependency>
\u0026lt;/ dependencies>
\u0026lt;/ project>


Just
 mvn install mvn 
and
 eclipse: eclipse and import 
project to Eclipse.

Add to a project class, whose task is to create a rule base (RuleBase) on the basis delivered to the XLS file (name):
 pl.kadamczyk.droolssample package; 

import java.io.IOException;
import java.io. InputStream;
import java.io.Reader;
import java.io.StringReader;
import java.util.Properties;

org.drools.RuleBase import, import
org.drools.RuleBaseFactory;
import org.drools.compiler . DroolsParserException;
org.drools.compiler.PackageBuilder import, import
org.drools.compiler.PackageBuilderConfiguration;
org.drools.decisiontable.InputType import, import
org.drools.decisiontable.SpreadsheetCompiler;
import org.drools.rule.Package;

public class DecisionTableXlsCompiler {

public RuleBase compileToRuleBase(final String decisionTablesXlsFile) throws Exception {
RuleBase result = RuleBaseFactory.newRuleBase();

final InputStream resourceAsStream = DecisionTableXlsCompiler.class.getResourceAsStream(decisionTablesXlsFile);
final String drl = compileXlsToDlr(resourceAsStream);
Package rulePackage = this.buildPackageFromDrl(drl);
result.addPackage(rulePackage);
return result;
}

private Package buildPackageFromDrl(final String drlString) throws DroolsParserException, IOException {
Properties properties = new Properties();
properties.setProperty("drools.dialect.java.compiler", "JANINO");
properties.setProperty("drools.dialect.java.lngLevel", "1.5");

final PackageBuilderConfiguration pkgBuilderCfg = new PackageBuilderConfiguration(properties);
final PackageBuilder builder = new PackageBuilder(pkgBuilderCfg);

Reader drlReader = new StringReader(drlString);
builder.addPackageFromDrl(drlReader);

Package result = builder.getPackage();

return result;
}

private String compileXlsToDlr (final InputStream xlsStream) {
final SpreadsheetCompiler SpreadsheetCompiler compiler = new ();
final String drl = compiler.compile (xlsStream, InputType.XLS) drl
return;}


}

And a class that starts the motor Rules of the pre-compiled rules base, supplying them with facts :
 pl.kadamczyk.droolssample package; 

import java.util.List;

org.drools.RuleBase import, import
org.drools.StatelessSession;

public class DroolsEvaluator {

\u0026lt;T> public void run (RuleBase ruleBase, final String outParamName, T outParamRef, final List facts \u0026lt;object>) {
final StatelessSession ruleBase.newStatelessSession statelessDroolsSession = ();
statelessDroolsSession.setGlobal (outParamName, outParamRef);
statelessDroolsSession.execute (facts);
}}


I already can run this application:
 pl.kadamczyk.droolssample package; 

import java.util.ArrayList;
import java.util.List;

import org.drools.RuleBase;

pl.kadamczyk import. droolssample.model.Activity;
import pl.kadamczyk.droolssample.model.Student;

public class Runner {

public static void main(String[] args) throws Exception {
DecisionTableXlsCompiler compiler = new DecisionTableXlsCompiler();
DroolsEvaluator evaluator = new DroolsEvaluator();

List<Object> rulesResult = new ArrayList<Object>();

RuleBase ruleBase = compiler.compileToRuleBase("decisiontable.xls");
evaluator.run(ruleBase, "resultList", rulesResult, prepareFacts());

for (Object obj : rulesResult) {
System.out.println(obj);
}
}

private static List \u0026lt;object> prepareFacts () {List \u0026lt;OBJECT>
facts \u0026lt;object> = new ArrayList ();
Activity learningActivity = new Activity ();
learningActivity.setName ("learning");
facts.add (learningActivity) ;
Activity funActivity = new Activity ();
funActivity.setName ("fun");
facts.add (funActivity);
facts.add (new Student ());

return facts;}

}

Running the example above will write the string on the console:
 student is having fun 
Student learning is


which is in line with expectations, as communicated to the rule engine facts (objects created in the method prepareFacts ()) satisfy both rules.

Sunday, May 10, 2009

Headaches With Fish Oil

GeeCON 2009

Last week was marked by GeeCON conference - time to summarize two days spent in Krakow.

Organizers chose the venue cinema (Multikino Krakow), which had its pluses, positive and negative;) Best result is an enormous screen behind the speaker, which slides are displayed - and it is a step in the right direction. The problem is, however, the right lighting - to the darkened room cinema speaker was visible, and the light does not illuminate the screen. Unfortunately, not completely managed to do during the first lecture Simon Ritter "JavaFX: The Platform for Rich Internet Applications." From the place where I sat some of the slides were practically invisible. He mentioned this to the same speaker, who often have to describe what should be visible on the screen.

From GeeCON

lighting problems were partially solved and then it was much better. An interesting and successful gentlemen gave a lecture to SpringSource: Alef Arendsen and Arjen Poutsma . They talked about the news in Spring 3.0, and Arjen has also started the second day of the conference an interesting lecture on Spring and RESTful Web Services.

From GeeCON

Next came time for the lecture Waldek Kota about virtualization - interesting, but probably a little too detailed, and somewhat stremowanego Jack Laskowski who presented on OpenEJB. Jacek went to the lecture probably a bit conservative and does not give any example at the beginning of "live". It seems that some jitters got to him associated with the occurrence of English. The concerns were unnecessary, because the language was good - but could use some more interesting topic, in which Jace could further spread my wings;)

On the first day I attended a great lecture yet Vaclav Pecha "Practical Groovy" - a way of presentation, showing examples , contact with the audience - all at six. Vaclav showed how Groovy helps to resolve some problems and how to easily integrate it with Java.

remember the second day mainly due to two very good lectures Antonio Goncalves 's, and a great run in a funny lecture by Bruno Bossoli. Antonio asked to substitute one of the speakers presented the GlassFish application server and the second (planned), the latest in a lecture devoted JavaEE6.
Bossola Bruno, a member of the JUG Torino, discussed the principles of software design in a very charismatic, seasoned with a large dose of humor way. Every once in a while, the slides containing found fragments of the funniest comments in the code:

From GeeCON

very important elements of the conference was "additional attractions, among which the most interesting was the Beer Certification Path, which is round of the pubs in Krakow on Thursday evening. In each of the four pubs to pick up Sun's was a beer:) and the stamp - one of the letters of the word JAVA:

From GeeCON

Great idea: D By the way, we have another argument in the superiority of Java over C # - Java has more letters;)

short - a few interesting lectures, afternoon beer in Krakow - is made generally think that the conference a success. Certainly the success of brilliance eclipsed technical problems at the beginning of the light, then connecting the laptop, especially "poppies" for the projectors, but we all learn from our mistakes and I'm sure that GeeCON 2010 will be even better - and the more such events, the better for us :)

Friday, April 17, 2009

Ergoline Weight Limits

What's going on in JavaFX

Last I have the opportunity to acquaint themselves with technology, JavaFX and I'd like to share with you my thoughts on it.

Static typing
JavaFX language is statically (strongly) typed, with a developed mechanism of Type Inference, that is - from English to ours - "guessing" types ". It is very cool that we save a little typing in the variable declaration as a record (valid)
 var string: String = "Hello World!" 
equally valid, we can replace a record
 var string = "Hello World!" 
and since then the compiler already knows (guess) that the string is String.

Binding level language
Noteworthy binding mechanism introduced at the level of language . It is very interesting and useful in many places. For example, write:
 currentTextBoxValue var = ""; 
....

TextBox {value: bind with inverse currentTextBoxValue
}
means that whenever you type something in the text box (TextBox), the content of this field will be automatically rewritten to the variable currentTextBoxValue , and whenever you change the value of currentTextBoxValue , updated the contents of the text box. This mechanism saves time writing many listenerów, although it seems to me that badly used, can also be a source of consternation when the variables will "magically" change its value;)

Closures (closures)
subject known Java lovers, or even the discussion introduce the mechanism for the next version or not:) The JavaFX available:

 var x = 1; 
SwingButton
{action: function (): Void {
x + +;}

text: "Increment"
}

Conceptually, this involves the transfer functions (closure, called closure) as the parameter "somewhere else", but this function when the recipient decides to do it, its performance will take place in a context in which the function was created. Also very convenient solution to quickly obtain a desirable effect.

Access Modifiers
JavaFX developers probably decided to discourage developers from using how can we close getter and setter , providing a number of new field access modifiers such as:
public-init - allows the modification of the field only during object creation
public-read - allows read-only access from the outside

no constructors, init blocks and postinit
So yes - there is no space for JavaFX constructors. Create objects using a special form of expression:
 var circle = Circle {fill 
: null
stroke: Color.BLACK
strokeWidth: 3
centerx: 22,
centery: 33,
radius: 44}


Within parentheses braces set of class fields, but here there is no complete freedom, because We limit the access modifiers of these fields.

To ensure the integrity of the object inside the class we create a block postinit , which will be made shortly after the creation of the object and set its value in fields:
 

postinit {if (model == null) {throw new IllegalStateException
("Model can not be null! ");}

}

Integration with Java
very important information - from within JavaFX can be used in classes Javowych (this can be seen even in the example above, when I throw a good old IllegalStateException). Restriction relates to the binding - you can not bind to the fields of classes written in Java.

stock ready-made solutions
And here is my opinion as long as a serious problem. I expected much more from the example widgets. When I needed a datepicker, I was forced to take the calendar component of the Sun examples and a bit of him converting to create a custom control containing a textbox and a button that displays a calendar. Augurs well for the future collection of JFXtras , but so far it's still too little.

support from the IDE
At once I said my favorite is the Eclipse environment. Unfortunately - at this stage to fight with the JavaFX had any sense, I had to change to (tymczasowo! right back!) For Netbeans 6.5. I do not want to offend fans of NB, so I will not elaborate on the obvious differences of these environments, which for obvious reasons (obvious obviousness) hamper my job;) Netbeansowy JavaFX plugin is also not error free, and the most troublesome concern prompting, organizing imports and formatting code. Refactoring does not work also (horror of horrors), and various means of navigation in the code (eg, call hierarchy, which happens often used).

Future
JavaFX is still a new technology that requires okrzepnięcia, stabilize, and strong support from the community . Sun should also place greater emphasis on the creation of ready-made libraries of components, effects, and "gadgets" that would make it easier to start building the complex, good-looking web applications. JavaFX is still firmly
changes - you can see it even after the examples found in the network, some of which simply does not work anymore, due to changes in API. The idea, however, is undoubtedly an interesting and promising, so fingers crossed for the technology:)

Wednesday, March 11, 2009

I Want To Masterbate For You Movies

4Developers - impressions

Recently I had the pleasure to participate in the conference 4Developers , which surprised me very positively in terms of content. Four parallel paths that really was made to choose from.

At first the fire Adam Bien a lecture entitled EJB 3.1 - Killing The Top Eleven Myths, Tales and Biases . For quite a long time worked EJB3 technology, have come to this lecture with pretty large expectations and - I admit - I was not disappointed. Adam led a tangible, persuasive speech and not for a moment not przynudzał:) rate in the same time, and even elements of humor have happened. Adam purpose was to fight the myths that say that EJB3.x are "heavy" and difficult to test, implement, etc.. Adam placed great emphasis on the upcoming EJB3.1, for example, where you can "manually" (in code) to start the EJB container (now possible with OpenEJB, but will enter the standard). Unification will also JNDI-names of components, which will help to achieve true portability of applications between application servers.

As the second section there is a Java Neal Ford with a lecture titled The Productive Programmer : Mechanics. In this case also no disappointments - Neal presented an interesting work on optimizing the developer, presenting a variety of support tools. He showed that improving the simplest tasks like copying to the clipboard or to navigate the directory tree, we can gain a lot of time. Neal placed great emphasis on the need for a good understanding of your IDE and particularly its use with the keyboard.

As the third occurred on the path Javowej Cornel Creanga Flex presenting opportunities in conjunction with Java. Unfortunately, this lesson is not impressed by the content or style of presentation, but Maybe my opinion is in part due to the fact that this subject interests me less. The presentation was confined to przeklikania demo applications taking advantage of the Flex. Quite an unpleasant surprise was some element (unless the speaker), which fell from the ceiling and hung on wires over the head of one of the participants in the lecture - very nearly ...

then moved to a room where there were lectures from the path of Project Management, to listen to Adam Krosnego the company Alan Systems . Adam led a very interesting and comprehensive lecture on the practice of placing SCRUM methodology. He described the process of implementing this methodology in terms of practice, providing the theoretical basis. Also in the "backstage" I have heard many positive opinion on the lectures (eg, someone said it was the most essential lesson of all lectures sponsored.) subject presented by Adam met with great interest unless packed in 100% of the room - many people asked questions, which the lecture was somewhat prolonged, but it was worth it:)

Martin Żuchowicz with e-point presented a problem of large IT projects from a practical point of view. Lecture interesting, sometimes funny (eg, project description Ajax with several bedrooms filled with documentation;)) The main conclusion to which the speaker sought to need a strong commitment to client-side manager and his ability to convince their superiors that it's sometimes useful to change the requirements in the name of a good project.

Then I went on a lecture by Ted Neward 'and who talked about Scala. Ted, like Neal Ford (ThoughtWorks both of) a conference "stager", this time also did not disappoint. Summarized the basis of Scala as a language independent, as well as possible for use from Java. Repeatedly emphasized the advantages of Scala compiler in comparison with javac - such as the maturity of the semicolon at the end of the expression (Scala does not require this), or having determining the type of the variable in the declaration (on the left).

The last occurred Jacek Laskowski which roused the audience a bit tired now. Jacek talked about Groovy and Grails, and although - as is sometimes the presentation-not everything worked, at least theoretically learned more about these mechanisms. Despite the late hour Jack was able to engage the audience in his lecture, and even a minor slip associated with the operation of the examples were rewarded with applause;)

After the conference was the level of substantive I think high. I would even say that it was better than the previous two JDD. The only thing missing is a lunch and parking. Break for lunch at which all run out of the city, and there in all the restaurants coming hordes of developers - it's not a good idea;)

Tuesday, January 6, 2009

Brazilian Waxing In Ottawa And Hard Wax Reviews

Spring + Hibernate - migration from XML to annotations

eating lots of time has passed since my last post (prosaic reason - I was free :) plans for December were huge - the development of the blog, refine framework on which I work, etc., etc. .. As you can see in December did not show up, not a single post, so those glorious plans lay in ruins. Succeeded But I settle a few other useful things. It turns out that you can save more time conducting regular life (work, etc.). I hope that now I can write more about my struggle with Java;)

For things so - today, we modify the project written with Spring and Hibernate. The modification will be to phase out the files. HBM and introducing in their place annotations. I will not describe the way adnotowania entity, because I recognize that there is nothing particularly difficult (maybe with the exception of some specific elements XML'owego description of the mapping). This is what I want to describe the configuration steps that will allow the operation of annotations in the project.

Step 1 - add the required libraries
to the project, add the following JAR file:
  • - hibernate-annotations.jar
  • - hibernate-commons-annotations.jar
  • - slf4j-api-1.5.6jar
  • - slf4j-1.5.6.jar-log4j12
  • - ejb3-persistence.jar
important that both SPRING slf4j were in the same version - otherwise we can expect interesting bugs:)

Step 2 - The modification in the context of Spring
1) Change the class SessionFactory
 \u0026lt;bean id="sessionFactory" 
class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">

the
 \u0026lt;bean id = "SessionFactory" 
class = "org. springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean ">


2) Add the following entry:
 \u0026lt;property name="configurationClass"> 
\u0026lt;value> org.hibernate.cfg.AnnotationConfiguration \u0026lt;/ value>
\u0026lt;/ property>


3) we list the class described by phrases:
 \u0026lt;property name="annotatedClasses"> 
\u0026lt;list>
\u0026lt;value> pl.kadamczyk.model.User \u0026lt;/ value>
\u0026lt;/ list>
\u0026lt;/ property>


What is important some classes in the project can be described with annotations, and the remainder XMLem since, in addition annotatedClasses properties can also include property such as mappingDirectoryLocations allowing a directory containing the files.