Java

/Tag:Java

Installing Java ME Embedded 8 on the Raspberry Pi

We try to write first Midlet and run it at Raspberry Pi device remotely. You need Raspberry Pi prepared. I’m using recommended OS for Raspberry: Rasbian. It’s debian based linux distribution prepared for this machine. If you work often with the same Pi you should set up static IP. It’s recommended way, you no need find current IP every reboot. You can do this in two ways: in the router, to bind IP with Pi Network Card’s MAC number, or at the Pi network config to retrieve static IP. The article doesn’t cover instalation and using ssh also. If all is prepared we can start. […]

By | Kwiecień 17th, 2014|Categories: Development|Tags: , , , |0 Comments

Preparing for Java ME8

Few days ago Oracle has rolled out Java 8. In my opinion it’s revolutionary release, but it isn’t topic of this article. In parallel we can use new Java ME distribution for embedded platform – Java ME 8. Sadly SDK is at the moment at Early Access state and prepared only for Windows. I’m Mac user, then there is no possibility to check this out without VirtualBox. […]

By | Kwiecień 17th, 2014|Categories: Development|Tags: , , , |0 Comments

Resolve Sudoku puzzle with Choco

Few years ago I was programmer that write my own algorithms for every problem I’ve tried to resolve. One day I asked myself „Is any library that help me to resolve decisions in way, I provide data and conditions and get solution in back?” That day I’ve found Constraint programming. Contraint programming is an emergent software technology for declarative description and effective solving of large, particularly combinatorial, problems especially in areas of planning and scheduling. It represents the most exciting developments in programming languages of the last decade and, not surprisingly, it has recently been identified by the ACM (Association for Computing Machinery) as one of the strategic directions in computer research.(source) […]

By | Luty 24th, 2014|Categories: Development, Tips and Tricks|Tags: , , |1 Comment

Java 8 – Default and static methods in interfaces

Java 8 has a lot of improvements, many of them touch interfaces. The problem is when new release want to add new methods to old interfaces from standard library. Every class implementing that interface should be rewrited to add implementations of missing methods. That’s very big problem – unacceptable in Java. Java 8 provide solution for problem of this kind – default methods. […]

By | Luty 12th, 2014|Categories: Development, Programowanie|Tags: , |0 Comments

Java 8 – Method references

With Lambda expressions Java 8 has new power for developing smart and fast applications. If you don’t know how lambda expressions works just take a look a link above. Sometimes, there is already a method that carries out exactly the action that you’d like to pass on to some other code. For example, suppose you simply want to print the event object whenever a button is clicked. You can use code below:

[…]

By | Luty 11th, 2014|Categories: Development, Programowanie|Tags: , , |0 Comments

Java 8’s Lambda expressions

There will be few new features included in Java 8. Lambda expressions are one of them. They provide a concise and clear way to represent method interface using an expression. Labda represents an anonymous function like anonymous classes well known from previous java releases, but with clean and simple syntax. Lambda expression is a block of code with parameters, you can use it whenever you want, a block of code is executed at later point of time. Up to now, giving someone a block of code hasn’t been easy in Java. Java is an object-oriented language, so you had to construct an object belonging to a class that has a method with the desied code. […]

By | Luty 10th, 2014|Categories: Development, Programowanie|Tags: , , |0 Comments

Statyczne(prawie) strony w playframework

Większość aplikacji czy też systemów zarządzania treścią posiada dymanicznie tworzoną treść. Jednak niekiedy część tej treści jest mniej dynamiczna. Zmienia się rzadko lub też wogóle. Przykładem mogą być takie strony jak „Regulamin” czy też „Polityka Prywatności”. Gdy do tworzenia aplikacji używamy dowolnego frameworka zgodnego z wzorcem MVC, treść takich stron powinna być przechowywana w bazie a pobierana przez kontroler. Innym rozwiązaniem jest napisanie oddzielnej metody dla każdej strony i treść umieszczać w odpowiednim widoku. Pracując z Play Framework można to zrobić o wiele prościej. […]

By | Wrzesień 27th, 2011|Categories: Programowanie|Tags: , |0 Comments

Java, TMPDIR i MacOS X

Prawie cały dzień spędziłem na bezefektywnej próbie uruchomienia starego jBossa wygrzebanego z backup'u na moim Macu. Po dłuższych analizach znalazłem przycznę. Otóż, podczas startu, serwer ustawiał zmienną java.io.tmpdir. W systemie MacOS X w takim momenie zostaje utworzony nowy folder w /private/var/folders.Problemem jest to, że w nazwie tego folderu występują znaki plus +, które przez niektóre [...]

By | Październik 27th, 2009|Categories: Tips and Tricks|Tags: , |0 Comments

IntelliJ IDEA w pracy

Kurczaki.... ja też mam IntelliJ IDEA w pracy :) .

By | Marzec 27th, 2009|Categories: MiszMasz|Tags: , |0 Comments

Przypomnienie podstaw UML

W notacji UML klasa jest przedstawiona jako prostokąt podzielony na trzy części. W pierwszej części podana jest nazwa klasy i czasami package. W drugiej części podane są pola czyli atrybuty klasy. W ostatniej znajduje się lista operacji (metod). […]

By | Styczeń 22nd, 2009|Categories: Programowanie|Tags: , , , |0 Comments