package myjavaprogram; import java.util.Arrays; public class TestClass1 { public static void main(String[] args){ int[] array = {23, 23, 0, 43, 545, 12, -55, 43, 12, 12, -999, -87, 12, 0, 0}; //int[] array = {23, -22, 0, 43, 545, 12, -55, 43, 12, 0, -999, -87, 12}; //int[] array = {23, -22, 0, 23}; //int[] array = {23, -22, 23}; calculate_duplicates(array); } private static void calculate_duplicates(int[] array) { calculateUniqueNumbers(array); }
среда, 31 декабря 2014 г.
java calculate number of duplicates in array of integer numbers
понедельник, 29 декабря 2014 г.
Hour of Code Isn't Just For Kids--It's For You Too
http://www.inc.com/suzanne-lucas/hour-of-code-isn-t-just-for-kids-it-s-for-you.html?cid=sf01002
If you're not thrilled about your current job, you might want to pay attention to theHour of Code. This event took place a couple of weeks ago and focused on getting children involved in coding, but Ryan Carson, founder and CEO of online coding school Treehouse, says it's never too late for adults to learn to code as well.
Most people see learning to code as something for the young, but Carson says that Treehouse is also working on helping adults who are interested in a career change learn to code, and therefore, land coding jobs. Carson says,
"We believe this National Computer Science Education Week presents an opportunity to retrain our current work force and help many American adults, 27 million of whom are either unemployed or underemployed, begin or transition into a computer programming job of their own. Encouraging and educating adults with coding skills now provides an immediate solution to solving our country's shortage of tech talent, while we wait on our youth to infiltrate our tech work force over the next decade.
75 ярких воспоминаний, которые обязательно нужно подарить ребенку
http://www.vospitaj.com/blog/75-yarkikh-vospominanijj-kotorye-obyazatelno-nuzhno-podarit-rebenku/
СДЕЛАЙТЕ ЭТО ВМЕСТЕ С ВАШИМ РЕБЁНКОМ,
ЧТОБЫ ВОСПОМИНАНИЯ О ЕГО ДЕТСТВЕ БЫЛИ СЧАСТЛИВЫМИ!
ЧТОБЫ ВОСПОМИНАНИЯ О ЕГО ДЕТСТВЕ БЫЛИ СЧАСТЛИВЫМИ!
Итак, вот 75 ярких воспоминаний составленные Юлией Луговской,
которые обязательно нужно подарить детям :
которые обязательно нужно подарить детям :
- Пускать солнечные зайчики.
- Наблюдать как прорастают семена.
- Вместе скатиться с высокой ледяной горы.
- Принести с мороза и поставить в воду ветку.
40 простых идей для игр с детьми, которые оставляют яркие воспоминания
http://www.vospitaj.com/blog/40-prostykh-idejj-dlya-igr-s-detmi-kotorye-ostavlyayut-yarkie-vospominaniya/
СЫГРАЙТЕ В ЭТИ ИГРЫ ВМЕСТЕ С ВАШИМ РЕБЁНКОМ,
ЧТОБЫ ВОСПОМИНАНИЯ О ЕГО ДЕТСТВЕ БЫЛИ ЯРКИМИ!
ЧТОБЫ ВОСПОМИНАНИЯ О ЕГО ДЕТСТВЕ БЫЛИ ЯРКИМИ!
- Бег с «яйцом». Шарик от пинг-понга кладем на чайную ложку и бегаем по всей квартире, стараясь удержать шарик на ложке. От 3 лет.
- Болтуны. Быстро-быстро говорим. Кто сможет дольше? От 3 лет.
- Быстро соображаем. Один игрок быстро называет какое-нибудь слово. Другой тут же должен сказать, что ему в связи с этим пришло на ум. Потом меняемся ролями.От 4 лет.
- Ветеринарная больница. Мягкие игрушки укладываем в постель и лечим: перевязываем, даем лекарства, измеряем температуру, ставим компрессы и т.д. От 3 лет.
пятница, 26 декабря 2014 г.
SOLID principles with real world examples
http://blog.gauffin.org/2012/05/solid-principles-with-real-world-examples/
The following article aims to explain the five SOLID principles with real world examples. The SOLID principles are five programming principles which is considered to be the foundation of every well designed application. Following the principles will most likely lead to applications which are is easy to extend and maintain. That’s possible since you got small well defined classes with clear contracts.
All motivator images are created by Derick Baley.
Let’s get started with the principles.
вторник, 9 декабря 2014 г.
java concurrency web application + clustering
HttpSession
Sticky session
[main]
Modern concurrency and Java EE
http://java.dzone.com/articles/modern-concurrency-and-java-ee
Java theory and practice: Are all stateful Web applications broken?
http://www.ibm.com/developerworks/library/j-jtp09238/
Java theory and practice: State replication in the Web tier
http://www.ibm.com/developerworks/java/library/j-jtp07294/index.html
Sticky session
[main]
Modern concurrency and Java EE
http://java.dzone.com/articles/modern-concurrency-and-java-ee
Java theory and practice: Are all stateful Web applications broken?
http://www.ibm.com/developerworks/library/j-jtp09238/
Java theory and practice: State replication in the Web tier
http://www.ibm.com/developerworks/java/library/j-jtp07294/index.html
среда, 3 декабря 2014 г.
Работа в командной строке Windows
В принципе в командной строке Windows всё просто. Любой, кто умеет печатать, сможет без труда работать в ней. Но для человека непосвященного командная строка может показаться сложной. Чтобы без проблем освоиться, надо знать основные команды и общие правила работы.
Данная статья является вводной и в ней я не буду углубляться в премудрости работы командной строки, опишу принцип работы самой строки, расскажу как работать со справочной информацией и опишу работу с основными командами на простых примерах.
Запуск командной строки
Наиболее часто встречающиеся рекомендации по запуску звучат так:
Пуск, выполнить, cmd. В меню пуск присутствует пункт
Выполнить. Он запускает программу, которая позволяет передавать единичные команды системе windows. В данном случае команда cmd запускает исполняемый файл cmd.exe , находящийся в папке system32.
C:\WINDOWS\system32\cmd.exe
среда, 19 ноября 2014 г.
ClassLoaders java [jvm]
[Video]
Do You Really Get Class Loaders?
https://www.youtube.com/watch?v=t8sQw3pGJzM
[Basics]
The basics of Java class loaders
http://www.javaworld.com/article/2077260/learn-java/learn-java-the-basics-of-java-class-loaders.html
Java Class Loading: The Basics
http://www.developer.com/java/other/article.php/2248831/Java-Class-Loading-The-Basics.htm
Understanding the Java ClassLoader
http://www.ibm.com/developerworks/java/tutorials/j-classloader/j-classloader.html
Do You Really Get Class Loaders?
https://www.youtube.com/watch?v=t8sQw3pGJzM
[Basics]
The basics of Java class loaders
http://www.javaworld.com/article/2077260/learn-java/learn-java-the-basics-of-java-class-loaders.html
Java Class Loading: The Basics
http://www.developer.com/java/other/article.php/2248831/Java-Class-Loading-The-Basics.htm
Understanding the Java ClassLoader
http://www.ibm.com/developerworks/java/tutorials/j-classloader/j-classloader.html
java concurrency [links, part 2]
- Tutorial with code
Java Concurrency - Part 1 : Threads
http://baptiste-wicht.com/posts/2010/05/java-concurrency-part-1-threads.html
Java Concurrency : Part 2 - Manipulate Threads
http://baptiste-wicht.com/posts/2010/05/java-concurrency-part-2-manipulate-threads.html
Java Concurrency – Part 3 : Synchronization with intrinsic locks
http://baptiste-wicht.com/posts/2010/08/java-concurrrency-synchronization-locks.html
Java Concurrency - Part 4 : Semaphores
http://baptiste-wicht.com/posts/2010/08/java-concurrency-part-4-semaphores.html
Java Concurrency - Part 5 : Monitors (Locks and Conditions)
http://baptiste-wicht.com/posts/2010/09/java-concurrency-part-5-monitors-locks-and-conditions.html
Java Concurrency - Part 6 : Atomic Variables
http://baptiste-wicht.com/posts/2010/09/java-concurrency-atomic-variables.html
Java Concurrency - Part 7 : Executors and thread pools
http://baptiste-wicht.com/posts/2010/09/java-concurrency-part-7-executors-and-thread-pools.html
Java Concurrency - Part 1 : Threads
http://baptiste-wicht.com/posts/2010/05/java-concurrency-part-1-threads.html
Java Concurrency : Part 2 - Manipulate Threads
http://baptiste-wicht.com/posts/2010/05/java-concurrency-part-2-manipulate-threads.html
Java Concurrency – Part 3 : Synchronization with intrinsic locks
http://baptiste-wicht.com/posts/2010/08/java-concurrrency-synchronization-locks.html
Java Concurrency - Part 4 : Semaphores
http://baptiste-wicht.com/posts/2010/08/java-concurrency-part-4-semaphores.html
Java Concurrency - Part 5 : Monitors (Locks and Conditions)
http://baptiste-wicht.com/posts/2010/09/java-concurrency-part-5-monitors-locks-and-conditions.html
Java Concurrency - Part 6 : Atomic Variables
http://baptiste-wicht.com/posts/2010/09/java-concurrency-atomic-variables.html
Java Concurrency - Part 7 : Executors and thread pools
http://baptiste-wicht.com/posts/2010/09/java-concurrency-part-7-executors-and-thread-pools.html
понедельник, 29 сентября 2014 г.
Dynamic Proxies In Java
Dynamic Proxies In Java
http://userpages.umbc.edu/~tarr/dp/lectures/DynProxies-2pp.pdf
Java theory and practice: Decorating with dynamic proxies
http://www.ibm.com/developerworks/library/j-jtp08305/
Dynamic Proxies - Short Tutorial
http://www.javaspecialists.eu/archive/Issue005.html
Usefulness of java dynamic proxies vs regular proxies
http://stackoverflow.com/questions/3696068/usefulness-of-java-dynamic-proxies-vs-regular-proxies
Java Dynamic Proxy [closed]
http://stackoverflow.com/questions/5920125/java-dynamic-proxy
Java Dynamic Proxies: One Step from Aspect-oriented Programming
http://www.devx.com/Java/Article/21463
Understanding Java Dynamic Proxy
http://www.techavalanche.com/2011/08/24/understanding-java-dynamic-proxy/
четверг, 25 сентября 2014 г.
java memory model
[video]
explain java memory model heap stack method area frames java interview
https://www.youtube.com/watch?v=YYfLDBKcfy8
From Java Code to Java Heap: Understanding the Memory Usage of Your Application
https://www.youtube.com/watch?v=FLcXf9pO27w
The JVM and Java Garbage Collection - OLL Live (Recorded Webcast Event)
https://www.youtube.com/watch?v=DoJr5QQYsl8
Understanding Java Garbage Collection and what you can do about it
https://www.youtube.com/watch?v=we_enrM7TSY
explain java memory model heap stack method area frames java interview
https://www.youtube.com/watch?v=YYfLDBKcfy8
From Java Code to Java Heap: Understanding the Memory Usage of Your Application
https://www.youtube.com/watch?v=FLcXf9pO27w
The JVM and Java Garbage Collection - OLL Live (Recorded Webcast Event)
https://www.youtube.com/watch?v=DoJr5QQYsl8
Understanding Java Garbage Collection and what you can do about it
https://www.youtube.com/watch?v=we_enrM7TSY
java concurrency
[video]
Multithreading in Java Part 1 | Introduction to Threads in Java | Java tutorial by Java9s
https://www.youtube.com/watch?v=O_Ojfq-OIpM
Multithreading in Java Part 2 | Thread States | Java Tutorials by Java9s
https://www.youtube.com/watch?v=wqkVCkeObsE
Thread Safety and code synchronization in java | Multithreading in Java part 3
https://www.youtube.com/watch?v=IYBrtzOvfqo
Multithreading Interview Question In Java
https://www.youtube.com/watch?v=Iea3p2HFqNo
Multithreading in Java Part 1 | Introduction to Threads in Java | Java tutorial by Java9s
https://www.youtube.com/watch?v=O_Ojfq-OIpM
Multithreading in Java Part 2 | Thread States | Java Tutorials by Java9s
https://www.youtube.com/watch?v=wqkVCkeObsE
Thread Safety and code synchronization in java | Multithreading in Java part 3
https://www.youtube.com/watch?v=IYBrtzOvfqo
Multithreading Interview Question In Java
https://www.youtube.com/watch?v=Iea3p2HFqNo
java interview questions
[video]
Core Java Interview Questions And Answers
https://www.youtube.com/watch?v=mb9AzAIDK54&list=PLHyEAfc_mrxbifpPk6m94v_ii1a84phgh
Exception Handling in Java - Checked and Unchecked Exceptions
https://www.youtube.com/watch?v=4my7mKFaNQs
Core Java Interview Questions And Answers
https://www.youtube.com/watch?v=mb9AzAIDK54&list=PLHyEAfc_mrxbifpPk6m94v_ii1a84phgh
Exception Handling in Java - Checked and Unchecked Exceptions
https://www.youtube.com/watch?v=4my7mKFaNQs
hash code
[video]
HashCode and its purpose
https://www.youtube.com/watch?v=HFoQEyxKDhQ
equals() and hashCode() in Java with an Example
https://www.youtube.com/watch?v=fAlRR2p9Le0
hashcode equals method java interview question and answer
https://www.youtube.com/watch?v=nkvdRrliOFc
Difference between == and equals method in JAVA
https://www.youtube.com/watch?v=WTOiuY7cNTo
HashCode and its purpose
https://www.youtube.com/watch?v=HFoQEyxKDhQ
equals() and hashCode() in Java with an Example
https://www.youtube.com/watch?v=fAlRR2p9Le0
hashcode equals method java interview question and answer
https://www.youtube.com/watch?v=nkvdRrliOFc
Difference between == and equals method in JAVA
https://www.youtube.com/watch?v=WTOiuY7cNTo
java clone
[video]
Java jdk 7 tutorial 19 clone method
https://www.youtube.com/watch?v=_k08JRFwgBs
Object Clone: Deep vs. Shallow Copy
https://www.youtube.com/watch?v=7NXyF4NIuQw
Java Clone - Advanced topic
https://www.youtube.com/watch?v=i7_OKhrKoZ4
Object Class Hash Code and Clone on 05 09 2012
https://www.youtube.com/watch?v=SHBh7nAd6Nw
Java jdk 7 tutorial 19 clone method
https://www.youtube.com/watch?v=_k08JRFwgBs
Object Clone: Deep vs. Shallow Copy
https://www.youtube.com/watch?v=7NXyF4NIuQw
Java Clone - Advanced topic
https://www.youtube.com/watch?v=i7_OKhrKoZ4
Object Class Hash Code and Clone on 05 09 2012
https://www.youtube.com/watch?v=SHBh7nAd6Nw
среда, 24 сентября 2014 г.
java serialization
[video main]
How java serialization works internally, Object Serialization algorithm
https://www.youtube.com/watch?v=nJrbbmySI70
Learn Java Tutorial for Beginners, Part 46: Serialization
https://www.youtube.com/watch?v=Sm9yoju1me0
Сериализация в Java - Serialization #1 - Advanced Java
https://www.youtube.com/watch?v=PcwXTCWRGvY
Сериализация в XML - Serialization #2 - Advanced Java
https://www.youtube.com/watch?v=cy9Bxkhpb0o
Сериализация в JSON - Serialization #3 - Advanced Java
https://www.youtube.com/watch?v=z2o5Wi355Cc
Программирование на Java для начинающих #18(Serialization)
https://www.youtube.com/watch?v=snw4Paafosg
[video additional]
Serialization and performance (Sergey Morenets, Ukraine)
https://www.youtube.com/watch?v=S7sv4ERK2uo
[articles main]
Сериализация в Java [ru]
http://habrahabr.ru/post/60317/
Java Object Serialization Specification
http://docs.oracle.com/javase/7/docs/platform/serialization/spec/serialTOC.html
Top 10 Java Serialization Interview Questions and Answers
http://javarevisited.blogspot.com/2011/04/top-10-java-serialization-interview.html
Java object serialization - Tutorial
http://www.vogella.com/tutorials/JavaSerialization/article.html
The Java serialization algorithm revealed
http://www.javaworld.com/article/2072752/the-java-serialization-algorithm-revealed.html
[articles additional]
5 things you didn't know about ... Java Object Serialization
http://www.ibm.com/developerworks/library/j-5things1/
How to Serialize an Object in Java
7 steps
http://www.wikihow.com/Serialize-an-Object-in-Java
Изучите секреты Java Serialization API [ru]
http://www.ccfit.nsu.ru/~deviv/courses/oop/java_ser_rus.html
Serialization is the conversion of an object to a series of bytes, so that the object can be easily saved to persistent storage or streamed across a communication link. The byte stream can then be deserialised - converted into a replica of the original object.
How java serialization works internally, Object Serialization algorithm
https://www.youtube.com/watch?v=nJrbbmySI70
Learn Java Tutorial for Beginners, Part 46: Serialization
https://www.youtube.com/watch?v=Sm9yoju1me0
Сериализация в Java - Serialization #1 - Advanced Java
https://www.youtube.com/watch?v=PcwXTCWRGvY
Сериализация в XML - Serialization #2 - Advanced Java
https://www.youtube.com/watch?v=cy9Bxkhpb0o
Сериализация в JSON - Serialization #3 - Advanced Java
https://www.youtube.com/watch?v=z2o5Wi355Cc
Программирование на Java для начинающих #18(Serialization)
https://www.youtube.com/watch?v=snw4Paafosg
[video additional]
Serialization and performance (Sergey Morenets, Ukraine)
https://www.youtube.com/watch?v=S7sv4ERK2uo
[articles main]
Сериализация в Java [ru]
http://habrahabr.ru/post/60317/
Java Object Serialization Specification
http://docs.oracle.com/javase/7/docs/platform/serialization/spec/serialTOC.html
Top 10 Java Serialization Interview Questions and Answers
http://javarevisited.blogspot.com/2011/04/top-10-java-serialization-interview.html
Java object serialization - Tutorial
http://www.vogella.com/tutorials/JavaSerialization/article.html
The Java serialization algorithm revealed
http://www.javaworld.com/article/2072752/the-java-serialization-algorithm-revealed.html
[articles additional]
5 things you didn't know about ... Java Object Serialization
http://www.ibm.com/developerworks/library/j-5things1/
How to Serialize an Object in Java
7 steps
http://www.wikihow.com/Serialize-an-Object-in-Java
Изучите секреты Java Serialization API [ru]
http://www.ccfit.nsu.ru/~deviv/courses/oop/java_ser_rus.html
Serialization is the conversion of an object to a series of bytes, so that the object can be easily saved to persistent storage or streamed across a communication link. The byte stream can then be deserialised - converted into a replica of the original object.
воскресенье, 21 сентября 2014 г.
java reflection
[articles]
What is reflection, and why is it useful?
http://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful
Java Reflection Tutorial
http://tutorials.jenkov.com/java-reflection/index.html
Java runtime metadata analysis, in the spirit of Scannotations
http://code.google.com/p/reflections/
Java Reflection Tutorial for Classes, Methods, Fields, Constructors, Annotations and much more
http://www.journaldev.com/1789/java-reflection-tutorial-for-classes-methods-fields-constructors-annotations-and-much-more
What is reflection, why is it useful, and how to use it?
http://www.programcreek.com/2013/09/java-reflection-tutorial/
Take an in-depth look at the Java Reflection API
http://www.javaworld.com/article/2077015/java-se/take-an-in-depth-look-at-the-java-reflection-api.html
Java programming dynamics, Part 2: Introducing reflection
http://www.ibm.com/developerworks/library/j-dyn0603/
Provide a simple example of object reflection in Java. What is reflection in Java?
http://www.programmerinterview.com/index.php/java-questions/java-reflection-example/
What is reflection, and why is it useful?
http://stackoverflow.com/questions/37628/what-is-reflection-and-why-is-it-useful
Java Reflection Tutorial
http://tutorials.jenkov.com/java-reflection/index.html
Java runtime metadata analysis, in the spirit of Scannotations
http://code.google.com/p/reflections/
Java Reflection Tutorial for Classes, Methods, Fields, Constructors, Annotations and much more
http://www.journaldev.com/1789/java-reflection-tutorial-for-classes-methods-fields-constructors-annotations-and-much-more
What is reflection, why is it useful, and how to use it?
http://www.programcreek.com/2013/09/java-reflection-tutorial/
Take an in-depth look at the Java Reflection API
http://www.javaworld.com/article/2077015/java-se/take-an-in-depth-look-at-the-java-reflection-api.html
Java programming dynamics, Part 2: Introducing reflection
http://www.ibm.com/developerworks/library/j-dyn0603/
Provide a simple example of object reflection in Java. What is reflection in Java?
http://www.programmerinterview.com/index.php/java-questions/java-reflection-example/
пятница, 19 сентября 2014 г.
When to use Singleton pattern?
Patterns I Hate #1: Singleton
http://tech.puredanger.com/2007/07/03/pattern-hate-singleton/
Singleton Pattern
http://www.oodesign.com/singleton-pattern.html
Use your singletons wisely
http://www.ibm.com/developerworks/library/co-single/
Difference between Singleton Pattern vs Static Class in Java
http://javarevisited.blogspot.com/2013/03/difference-between-singleton-pattern-vs-static-class-java.html
10 Singleton Pattern Interview questions in Java - Answered
http://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html
Why Enum Singleton are better in Java
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html
Singleton Pattern – Positive and Negative Aspects
http://www.codeproject.com/Articles/307233/Singleton-Pattern-Positive-and-Negative-Aspects
This entry inaugurates a new series on patterns that I hate. Hate is a strong word, perhaps a better name would be “patterns that I’ve frequently seen lead to ruin”. But that seemed too long.
Anyhow, the singleton pattern is the hands-down #1 pattern that can lead me to froth at the mouth. When a programmer first stumbles on GoF, Singleton seems to be the pattern that they first latch on to because it’s so easy to understand (just one class). Novice programmers doing their first design will often break out subsystems and access them via singletons.
Why is Singleton evil?
http://tech.puredanger.com/2007/07/03/pattern-hate-singleton/
Singleton Pattern
http://www.oodesign.com/singleton-pattern.html
Use your singletons wisely
http://www.ibm.com/developerworks/library/co-single/
Difference between Singleton Pattern vs Static Class in Java
http://javarevisited.blogspot.com/2013/03/difference-between-singleton-pattern-vs-static-class-java.html
10 Singleton Pattern Interview questions in Java - Answered
http://javarevisited.blogspot.com/2011/03/10-interview-questions-on-singleton.html
Why Enum Singleton are better in Java
http://javarevisited.blogspot.com/2012/07/why-enum-singleton-are-better-in-java.html
Singleton Pattern – Positive and Negative Aspects
http://www.codeproject.com/Articles/307233/Singleton-Pattern-Positive-and-Negative-Aspects
This entry inaugurates a new series on patterns that I hate. Hate is a strong word, perhaps a better name would be “patterns that I’ve frequently seen lead to ruin”. But that seemed too long.
Anyhow, the singleton pattern is the hands-down #1 pattern that can lead me to froth at the mouth. When a programmer first stumbles on GoF, Singleton seems to be the pattern that they first latch on to because it’s so easy to understand (just one class). Novice programmers doing their first design will often break out subsystems and access them via singletons.
Why is Singleton evil?
When to use Object pool pattern?
Various pools - Thread pools, connection pools, EJB object pools - Flyweight is really about management of shared resources
java.util.concurrent.ExecutorService
You need to frequently create and destroy objects.
Objects are similar in size.
Allocating objects on the heap is slow or could lead to memory fragmentation.
Each object encapsulates a resource such as a database or network connection that is expensive to acquire and could be reused.
Basically, we'll use an object pool whenever there are several clients who needs the same stateless resource which is expensive to create.
When there are several clients who need the same resource at different times.
It is deprecated as a general technique, because - as you noticed - creation and destruction of short lived objects per se (i.e. memory allocation and GC) is extremely cheap in modern JVMs. So using a hand-written object pool for your run-of-the-mill objects is most likely slower, more complicated and more error-prone than plain new.*
It still has its uses though, for special objects whose creation is relatively costly, like DB / network connections, threads etc.
java.util.concurrent.ExecutorService
You need to frequently create and destroy objects.
Objects are similar in size.
Allocating objects on the heap is slow or could lead to memory fragmentation.
Each object encapsulates a resource such as a database or network connection that is expensive to acquire and could be reused.
Basically, we'll use an object pool whenever there are several clients who needs the same stateless resource which is expensive to create.
When there are several clients who need the same resource at different times.
It is deprecated as a general technique, because - as you noticed - creation and destruction of short lived objects per se (i.e. memory allocation and GC) is extremely cheap in modern JVMs. So using a hand-written object pool for your run-of-the-mill objects is most likely slower, more complicated and more error-prone than plain new.*
It still has its uses though, for special objects whose creation is relatively costly, like DB / network connections, threads etc.
Examples of GoF Design Patterns in jdk
Examples of GoF Design Patterns
http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns
Design Patterns in the JDK.
http://www.briandupreez.net/2010/11/design-patterns-in-jdk.html
http://sdoulger.blogspot.com/2011/03/design-patterns-in-jdk.html
http://stackoverflow.com/questions/1673841/examples-of-gof-design-patterns
Design Patterns in the JDK.
http://www.briandupreez.net/2010/11/design-patterns-in-jdk.html
http://sdoulger.blogspot.com/2011/03/design-patterns-in-jdk.html
Pattern Proxy (Surrogate)
http://en.wikipedia.org/wiki/Proxy_pattern
Proxy Design Pattern Tutorial (video)
https://www.youtube.com/watch?v=cHg5bWW4nUI
Proxy Design Pattern Tutorial
http://www.newthinktank.com/2012/10/proxy-design-pattern-tutorial/
The proxy design pattern allows you to provide an interface to other objects by creating a wrapper class as the proxy. The wrapper class, which is the proxy, can add additional functionality to the object of interest without changing the object's code. Below are some of the common examples in which the proxy pattern is used,
Adding security access to an existing object. The proxy will determine if the client can access the object of interest.
Simplifying the API of complex objects. The proxy can provide a simple API so that the client code does not have to deal with the complexity of the object of interest.
Providing interface for remote resources, such as web service or REST resources.
Coordinating expensive operations on remote resources by asking the remote resources to start the operation as soon as possible before accessing the resources.
Adding a thread-safe feature to an existing class without changing the existing class's code.
In short, the proxy is the object that is being called by the client to access the real object behind the scene.
When to use proxy pattern?
Remote Proxy – Represents an object locally which belongs to a different address space. Think of an ATM implementation, it will hold proxy objects for bank information that exists in the remote server.
( RMI, CORBA and Jini)
Virtual Proxy (Lazy Load Proxy) – In place of a complex or heavy object, use a skeleton representation. When an underlying image is huge in size, just represent it using a virtual proxy object and on demand load the real object. You feel that the real object is expensive in terms of instantiation and so without the real need we are not going to use the real object. Until the need arises we will use the virtual proxy.
Protection Proxy – Are you working on a MNC? If so, we might be well aware of the proxy server that provides us internet by restricting access to some sort of websites like public e-mail, social networking, data storage etc. The management feels that, it is better to block some content and provide only work related web pages. Proxy server does that job. This is a type of proxy design pattern.
A smart reference - a replacement for a bare pointer that performs additional actions when an object is accessed.
Provides additional actions whenever a target
object is referenced such as counting the number of references to the object
Adding a thread-safe feature to an existing class without changing the existing class's code.
Cache Proxy - Provides temporary storage of the results of expensive target
operations so that multiple clients can share the results
Firewall Proxy - Protects targets from bad clients (or vice versa)
java.lang.reflect.Proxy
http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Proxy.html
java.rmi.*, the whole API actually.
Java Remote Method Invocation (RMI)
In java RMI an object on one machine (executing in one JVM) called a client can invoke methods on an object in another machine (another JVM) the second object is called a remote object. The proxy (also called a stub) resides on the client machine and the client invokes the proxy in as if it is invoking the object itself (remember that the proxy implements the same interface that RealSubject implements). The proxy itself will handle communication to the remote object, invoke the method on that remote object, and would return the result if any to the client. The proxy in this case is a Remote proxy.
Adapter vs Proxy Design Pattern
Adapter design pattern provides a different interface from the real object and enables the client to use it to interact with the real object. But, proxy design pattern provides the same interface as in the real object.
Decorator vs Proxy Design Patter
Decorator design pattern adds behaviour at runtime to the real object. But, Proxy does not change the behaviour instead it controls the behaviour.
Proxy Design Pattern Tutorial (video)
https://www.youtube.com/watch?v=cHg5bWW4nUI
Proxy Design Pattern Tutorial
http://www.newthinktank.com/2012/10/proxy-design-pattern-tutorial/
The proxy design pattern allows you to provide an interface to other objects by creating a wrapper class as the proxy. The wrapper class, which is the proxy, can add additional functionality to the object of interest without changing the object's code. Below are some of the common examples in which the proxy pattern is used,
Adding security access to an existing object. The proxy will determine if the client can access the object of interest.
Simplifying the API of complex objects. The proxy can provide a simple API so that the client code does not have to deal with the complexity of the object of interest.
Providing interface for remote resources, such as web service or REST resources.
Coordinating expensive operations on remote resources by asking the remote resources to start the operation as soon as possible before accessing the resources.
Adding a thread-safe feature to an existing class without changing the existing class's code.
In short, the proxy is the object that is being called by the client to access the real object behind the scene.
When to use proxy pattern?
Remote Proxy – Represents an object locally which belongs to a different address space. Think of an ATM implementation, it will hold proxy objects for bank information that exists in the remote server.
( RMI, CORBA and Jini)
Virtual Proxy (Lazy Load Proxy) – In place of a complex or heavy object, use a skeleton representation. When an underlying image is huge in size, just represent it using a virtual proxy object and on demand load the real object. You feel that the real object is expensive in terms of instantiation and so without the real need we are not going to use the real object. Until the need arises we will use the virtual proxy.
Protection Proxy – Are you working on a MNC? If so, we might be well aware of the proxy server that provides us internet by restricting access to some sort of websites like public e-mail, social networking, data storage etc. The management feels that, it is better to block some content and provide only work related web pages. Proxy server does that job. This is a type of proxy design pattern.
A smart reference - a replacement for a bare pointer that performs additional actions when an object is accessed.
Provides additional actions whenever a target
object is referenced such as counting the number of references to the object
Adding a thread-safe feature to an existing class without changing the existing class's code.
Cache Proxy - Provides temporary storage of the results of expensive target
operations so that multiple clients can share the results
Firewall Proxy - Protects targets from bad clients (or vice versa)
java.lang.reflect.Proxy
http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Proxy.html
java.rmi.*, the whole API actually.
Java Remote Method Invocation (RMI)
In java RMI an object on one machine (executing in one JVM) called a client can invoke methods on an object in another machine (another JVM) the second object is called a remote object. The proxy (also called a stub) resides on the client machine and the client invokes the proxy in as if it is invoking the object itself (remember that the proxy implements the same interface that RealSubject implements). The proxy itself will handle communication to the remote object, invoke the method on that remote object, and would return the result if any to the client. The proxy in this case is a Remote proxy.
Adapter vs Proxy Design Pattern
Adapter design pattern provides a different interface from the real object and enables the client to use it to interact with the real object. But, proxy design pattern provides the same interface as in the real object.
Decorator vs Proxy Design Patter
Decorator design pattern adds behaviour at runtime to the real object. But, Proxy does not change the behaviour instead it controls the behaviour.
среда, 17 сентября 2014 г.
How to make code review?
The Helpful Tips
- Limit your review to the scope of the work. An effective review is laser-focused on the problem that is being worked on. Create follow-up action items (e.g., tickets) for any out-of-scope work that you think needs additional consideration.
- Make your review specific. Address specific lines, or components in your review. Avoid making general, sweeping statements.
- Make your review actionable. If it’s not immediately obvious how to implement the change you’ve requested, leave it out of your review.-
- Deliver your review in a timely manner. The longer you wait to give your review, the more the creator will have to draw from their memory on why certain decisions may have been made. I’ve started scheduling review times with one of my co-workers so that we can go through the work together. This isn’t always possible, or desirable, but it can be effective for small teams.
- As part of your review, be sure to acknowledge the time spent by the coder on the issue. Sometimes a three line change can take hours and hours of work. Take the time to be a human being and acknowledge the time that’s been spent on the issue.
- Be thankful. Especially on open source projects where contributors are generally not *required* to submit anything. And especially at work where co-workers are sometimes forced to work on parts of the project they genuinely hate. Take the time to say “thanks”. It can make all the difference.
Six Ways to Make Your Peer Code Reviews More Effective
http://radar.oreilly.com/2013/07/six-ways-to-make-your-peer-code-reviews-more-effective.html
Types
- Over-the-shoulder – One developer looks over the author's shoulder as the latter walks through the code.
- Email pass-around – Source code management system emails code to reviewers automatically after checkin is made.
- Pair Programming – Two authors develop code together at the same workstation, such is common in Extreme Programming.
- Tool-assisted code review – Authors and reviewers use software tools, informal ones such as pastebins and IRC, or specialized tools designed for peer code review.
Four ways to a Practical Code Review
http://www.methodsandtools.com/archive/archive.php?id=66
For your convenience, here are the 11 practices in a simple list that's easy to keep on file:
- Review fewer than 200–400 lines of code at a time.
- Aim for an inspection rate of fewer than 300–500 LOC per hour.
- Take enough time for a proper, slow review, but not more than 60–90 minutes.
- Be sure that authors annotate source code before the review begins.
- Establish quantifiable goals for code review and capture metrics so you can improve your processes.
- Use checklists, because they substantially improve results for both authors and reviewers.
- Verify that the defects are actually fixed.
- Foster a good code review culture in which finding defects is viewed positively.
- Beware of the Big Brother effect.
- Review at least part of the code, even if you can't do all of it, to benefit from The Ego Effect.
- Adopt lightweight, tool-assisted code reviews.
11 proven practices for more effective, efficient peer code review
http://www.ibm.com/developerworks/rational/library/11-proven-practices-for-peer-review/
Effective Code Reviews Without the Pain
http://www.developer.com/tech/article.php/3579756/Effective-Code-Reviews-Without-the-Pain.htm
What Makes a Good Code Review?
http://humblecoder.co.uk/blog/2010/10/13/what-makes-a-good-code-review/
10 ways to be a faster code reviewer
http://blog.codacy.com/top-10-faster-code-reviews/
Three tools that make Java code review painless and effective
http://www.techrepublic.com/article/three-tools-that-make-java-code-review-painless-and-effective/
How We Code Review
http://inside.unbounce.com/team/code-review-2
- Limit your review to the scope of the work. An effective review is laser-focused on the problem that is being worked on. Create follow-up action items (e.g., tickets) for any out-of-scope work that you think needs additional consideration.
- Make your review specific. Address specific lines, or components in your review. Avoid making general, sweeping statements.
- Make your review actionable. If it’s not immediately obvious how to implement the change you’ve requested, leave it out of your review.-
- Deliver your review in a timely manner. The longer you wait to give your review, the more the creator will have to draw from their memory on why certain decisions may have been made. I’ve started scheduling review times with one of my co-workers so that we can go through the work together. This isn’t always possible, or desirable, but it can be effective for small teams.
- As part of your review, be sure to acknowledge the time spent by the coder on the issue. Sometimes a three line change can take hours and hours of work. Take the time to be a human being and acknowledge the time that’s been spent on the issue.
- Be thankful. Especially on open source projects where contributors are generally not *required* to submit anything. And especially at work where co-workers are sometimes forced to work on parts of the project they genuinely hate. Take the time to say “thanks”. It can make all the difference.
Six Ways to Make Your Peer Code Reviews More Effective
http://radar.oreilly.com/2013/07/six-ways-to-make-your-peer-code-reviews-more-effective.html
Types
- Over-the-shoulder – One developer looks over the author's shoulder as the latter walks through the code.
- Email pass-around – Source code management system emails code to reviewers automatically after checkin is made.
- Pair Programming – Two authors develop code together at the same workstation, such is common in Extreme Programming.
- Tool-assisted code review – Authors and reviewers use software tools, informal ones such as pastebins and IRC, or specialized tools designed for peer code review.
Four ways to a Practical Code Review
http://www.methodsandtools.com/archive/archive.php?id=66
For your convenience, here are the 11 practices in a simple list that's easy to keep on file:
- Review fewer than 200–400 lines of code at a time.
- Aim for an inspection rate of fewer than 300–500 LOC per hour.
- Take enough time for a proper, slow review, but not more than 60–90 minutes.
- Be sure that authors annotate source code before the review begins.
- Establish quantifiable goals for code review and capture metrics so you can improve your processes.
- Use checklists, because they substantially improve results for both authors and reviewers.
- Verify that the defects are actually fixed.
- Foster a good code review culture in which finding defects is viewed positively.
- Beware of the Big Brother effect.
- Review at least part of the code, even if you can't do all of it, to benefit from The Ego Effect.
- Adopt lightweight, tool-assisted code reviews.
11 proven practices for more effective, efficient peer code review
http://www.ibm.com/developerworks/rational/library/11-proven-practices-for-peer-review/
Effective Code Reviews Without the Pain
http://www.developer.com/tech/article.php/3579756/Effective-Code-Reviews-Without-the-Pain.htm
What Makes a Good Code Review?
http://humblecoder.co.uk/blog/2010/10/13/what-makes-a-good-code-review/
10 ways to be a faster code reviewer
http://blog.codacy.com/top-10-faster-code-reviews/
Three tools that make Java code review painless and effective
http://www.techrepublic.com/article/three-tools-that-make-java-code-review-painless-and-effective/
How We Code Review
http://inside.unbounce.com/team/code-review-2
вторник, 16 сентября 2014 г.
Singleton pattern with combination of lazy loading and thread safety
Singleton pattern with combination of lazy loading and thread safety
http://stackoverflow.com/questions/15792186/singleton-pattern-with-combination-of-lazy-loading-and-thread-safety
<<
среда, 10 сентября 2014 г.
Cloneable Interface in Java
1) Resources
Cloneable Interface in Java
Java Cloning Tutorial, Shallow Copy and Deep Copy
http://www.javaexperience.com/java-cloning-tutorial/
A guide to object cloning in java
How to implement Cloneable Interface
Implementing Cloneable interface
clone() and the Cloneable Interface in Java
How to implement cloning in java using Cloneable interface?
About Java cloneable
What is the use of cloneable interface in java?
Implementing the Cloneable Interface
How clone method works in Java
пятница, 11 июля 2014 г.
Learning js from scratch
- example
https://github.com/akorchan/node-angular
- video
http://learn.javascript.ru/nodejs-screencast
- articles for beginners
http://learn.javascript.ru/
https://github.com/akorchan/node-angular
- video
http://learn.javascript.ru/nodejs-screencast
- articles for beginners
http://learn.javascript.ru/
пятница, 4 июля 2014 г.
java mysql hibernate example
[Maven_Hibernate_MySQL_Example]
Maven 2 + Hibernate 3.2 + MySQL Example (XML Mapping)
http://www.mkyong.com/hibernate/quick-start-maven-hibernate-mysql-example/
MySQL and Java JDBC - Tutorial
http://www.vogella.com/tutorials/MySQLJava/article.html
Maven 2 + Hibernate 3.2 + MySQL Example (XML Mapping)
http://www.mkyong.com/hibernate/quick-start-maven-hibernate-mysql-example/
MySQL and Java JDBC - Tutorial
http://www.vogella.com/tutorials/MySQLJava/article.html
пятница, 27 июня 2014 г.
gradle
-
Gradle Tutorial | Episode 1 - The Very Basics
https://www.youtube.com/watch?v=vxKN2VSqTMg&hd=1
-
Евгений Борисов — Power of Gradle
https://www.youtube.com/watch?v=NZJTYPLb0iE&hd=1
-
How to install Gradle
https://www.youtube.com/watch?v=3B30jh2psIY&hd=1
-
Getting Started with Gradle in IntelliJ IDEA 13
https://www.youtube.com/watch?v=3Euo6xzCwY4&hd=1
Gradle – время собирать по-новому!
http://jeeconf.com/archive/jeeconf-2012/materials/gradle/
среда, 18 июня 2014 г.
Read with kids
Я учусь в 6 классе. У нас в классе 30 человек, из которых 25 не читают. И во многом, это вина взрослых. Из личного опыта я знаю, что родители дают своим детям (моего возраста) «Три мушкетера», книги про индейцев, Жюля Верна, и многие другие книжки, которые запомнились им с детства. И возмущаются, что детям это неинтересно. Но этими книгами они вряд ли заинтересуют подростков. Извините, но они скучные. Их можно совершенно спокойно отложить до завтра или на недельку, и не так уж важно, что будет дальше. А некоторым просто дают определенное количество страниц в день, и ребенок побыстрее старается от них избавиться, чтобы усесться за компьютер или к телевизору.
Еще родители уверены, что современные книги все поверхностные, одноразовые, и читать их чуть ли не стыдно. На самом деле, они ошибаются. За последние годы появилось очень много книг, гораздо более увлекательных, и при этом столь же ценных с литературной точки зрения, как и те, что помнят родители из своего детства. И издаются такие книги, которые известны и любимы в мире многие годы, а у нас они появились только сейчас. Я не буду умничать и рекомендовать современные книги, получившие премии критиков и библиотекарей. Я хочу посоветовать книги, за которые ручаюсь.
Еще родители уверены, что современные книги все поверхностные, одноразовые, и читать их чуть ли не стыдно. На самом деле, они ошибаются. За последние годы появилось очень много книг, гораздо более увлекательных, и при этом столь же ценных с литературной точки зрения, как и те, что помнят родители из своего детства. И издаются такие книги, которые известны и любимы в мире многие годы, а у нас они появились только сейчас. Я не буду умничать и рекомендовать современные книги, получившие премии критиков и библиотекарей. Я хочу посоветовать книги, за которые ручаюсь.
Которые затягивают и не отпускают до последней страницы. Фантастику я в свой список специально не включала, потому что к этому жанру человек придет сам, но начав с фантастики, он может зациклиться именно на ней, и ничего больше ему не будет интересно.
Итак, список книг, которые имеют больше шансов стать интересными для человека 10-12 лет, чем те, что советует родитель или, к сожалению, районный библиотекарь.
— Андерс Якобссон, Серен Ульссон «Дневник Берта»
В книге смешно рассказывается об одиннадцатилетнем Берте, который описывает в дневнике свои проблемы и переживания.
Итак, список книг, которые имеют больше шансов стать интересными для человека 10-12 лет, чем те, что советует родитель или, к сожалению, районный библиотекарь.
— Андерс Якобссон, Серен Ульссон «Дневник Берта»
В книге смешно рассказывается об одиннадцатилетнем Берте, который описывает в дневнике свои проблемы и переживания.
понедельник, 16 июня 2014 г.
среда, 28 мая 2014 г.
воскресенье, 25 мая 2014 г.
150 лучших анимационных фильмов всех времен (от анимационного фестиваля "лапута", 2003)
http://vk.com/topic-11899367_23344990
В 2003 году в Токио прошел международный анимационный фестиваль "Лапута". Организаторы этого мероприятия попросили 140 мультипликаторов и кинокритиков со всего мира назвать по 20 анимационных фильмов, которые они считают лучшими.
По результатам опроса был опубликовал список из 150ти наименований.
SOVA составила для вас специальную мультипликационную программу, опираясь именно на этот список.
01. Yozhik v tumane (Ёжик в тумане) Hedgehog in the Fog [USSR] Yuri Norstein 1975
02. Skazka skazok (Сказка сказок) Tale of Tales [USSR] Yuri Norstein 1979
03. Fantasia (Фантазия) [USA] 1940
вторник, 13 мая 2014 г.
четверг, 8 мая 2014 г.
Наш ТОП-10 КНИГ ДЛЯ ФРИЛАНСЕРОВ:
1. "Нетворкинг для интровертов" (http://
Если вы фрилансер и интроверт, это не повод жить в изоляции. Связи приносят пользу!
2. "Легкий способ перестать откладывать дела на потом" (http://
Возвращайтесь к этой книге каждый раз, когда снова погрязаете в прокрастинации. А лучше - выучите её наизусть.
3. "Муза, где твои крылья?" (http://
Постановка целей - хорошо, а постановка целей для творческого человека — совсем другая история...
среда, 7 мая 2014 г.
Top 17 Programmer's Terminologies
1. A NUMBER OF DIFFERENT APPROACHES ARE BEING TRIED
- We are still pissing in the wind.
2. EXTENSIVE REPORT IS BEING PREPARED ON A FRESH APPROACH TO
THE PROBLEM
- We just hired three kids fresh out of college.
3. CLOSE PROJECT COORDINATION
- We know who to blame.
- We are still pissing in the wind.
2. EXTENSIVE REPORT IS BEING PREPARED ON A FRESH APPROACH TO
THE PROBLEM
- We just hired three kids fresh out of college.
3. CLOSE PROJECT COORDINATION
- We know who to blame.
Каждому возрасту свои книги: cписок книг от 6 мес. до 7 лет
https://www.facebook.com/www.danilova.ru/posts/705670186164579:0
Чтение несет в жизни культурного человека сразу несколько важнейших функций.
Познавательная. Благодаря книге перед ребенком открывается целый мир, о котором он еще почти ничего не знает. Книга расширяет естественные границы познания, позволяя малышу узнать о том, что ему, возможно, даже не придется никогда увидеть
Воспитательная. При помощи простейших, постепенно усложняющихся образов, ребенок учится законам жизни в обществе, правилам общения с людьми. Часто хорошая книга позволяет родителям объяснить ребенку те вещи, которые сами они не смогли бы точно сформулировать. Иногда именно книжные примеры исподволь помогают ребенку усвоить те правила, которые он не мог или не хотел воспринять от родителей.
четверг, 24 апреля 2014 г.
32 способа восстановить работоспособность за 10 минут
https://www.facebook.com/halilov/posts/10152406729027679:0
32 способа восстановить работоспособность за 10 минут
1. Заварите хороший чай. У чаев есть целая палитра "чайных фей". Пуэр и матэ - резко бодрят. Дян Хун - дает спокойную сосредоточенность. Травянные чаи - расслабляют.
2. Перечитайте список своих глобальных целей. Понимание куда и для чего Вы идете - всегда вдохновляет и дает сил.
3. Помедитируйте.
пятница, 28 марта 2014 г.
PrimeFaces Hello World
1 PrimeFaces Hello World Example
http://www.mkyong.com/jsf2/primefaces/primefaces-hello-world-example/
primefaces-hello-world-example
2 Prime Faces Hello World Example
http://www.javabeat.net/primefaces-hello-world-example/
primefaces-hello-world
3 JSF – PrimeFaces Hello World Application
http://www.onlinetechvision.com/?p=191
OTV_JSF_PrimeFaces
http://www.mkyong.com/jsf2/primefaces/primefaces-hello-world-example/
primefaces-hello-world-example
2 Prime Faces Hello World Example
http://www.javabeat.net/primefaces-hello-world-example/
primefaces-hello-world
3 JSF – PrimeFaces Hello World Application
http://www.onlinetechvision.com/?p=191
OTV_JSF_PrimeFaces
четверг, 27 марта 2014 г.
JSF hello world
JSF2.0-hello-world-example-2.1.7
1 JSF 2.0 Hello World Example
http://www.mkyong.com/jsf2/jsf-2-0-hello-world-example/
2 Hello World Example with JSF 2.0
http://examples.javacodegeeks.com/enterprise-java/jsf/hello-world-example-with-jsf-2-0/
3 JSF - First Application
http://www.tutorialspoint.com/jsf/jsf_first_application.htm
4 First Sample Hello World Example in JSF
http://www.sitenol.com/first-sample-hello-world-example-in-jsf
среда, 26 марта 2014 г.
10 вещей, которые нельзя заставлять делать ребенка
https://www.facebook.com/www.danilova.ru/posts/683685165029748:0
1. Лгать
В том числе и по мелочам («Скажи, что меня нет!»). И не только потому, что врать вообще нехорошо. Если ваш ребенок будет относиться ко лжи как к чему-то обыденному и будет лгать другим людям, то рано или поздно он будет врать и вам тоже. А вы этого даже не сможете понять, потому что актерская игра с опытом оттачивается до совершенства.
В том числе и по мелочам («Скажи, что меня нет!»). И не только потому, что врать вообще нехорошо. Если ваш ребенок будет относиться ко лжи как к чему-то обыденному и будет лгать другим людям, то рано или поздно он будет врать и вам тоже. А вы этого даже не сможете понять, потому что актерская игра с опытом оттачивается до совершенства.
2. Есть, когда ребенок не голоден
Да, существуют нормы, по которым педиатры рекомендуют кормить ребенка определенного возраста. Но эти нормы совсем не так велики, как кажется большинству заботливых мамочек.
Да, существуют нормы, по которым педиатры рекомендуют кормить ребенка определенного возраста. Но эти нормы совсем не так велики, как кажется большинству заботливых мамочек.
вторник, 25 марта 2014 г.
github pull requests - first steps
Getting your project on GitHub
http://guides.github.com/overviews/desktop/
Field-tested tools for any project.
https://github.com/features
Forking Projects
http://guides.github.com/overviews/forking/
понедельник, 24 марта 2014 г.
Загадки для детей: большая подборка
https://www.facebook.com/www.danilova.ru/photos/a.238877706177165.60869.228816773849925/683206671744264/?type=1
1. Загадки про природные явления - солнце, ветер, небо, земля, дождь...
2. Загадки про времена года
3. Загадки про растения - деревья, цветы, фрукты, овощи, ягоды
4. Загадки про животных, птиц, насекомых
5. Загадки про части тела - ручки, ножки, глазки, ушки
6. Загадки про разные предметы окружения
ЗАГАДКИ ПРО ПРИРОДНЫЕ ЯВЛЕНИЯ (И ПРИРОДУ): СОЛНЦЕ, ВЕТЕР, НЕБО, ЗЕМЛЯ, ДОЖДЬ
Накормишь – живет, Напоишь – умрет. (Огонь)
Бежит, бежит, не выбежит,
Течет, течет, не вытечет. (Вода в реке)
Кругом вода, а с питьём беда. ( Море )
Mongo DB intro 1
Spring Mongo
http://projects.spring.io/spring-data-mongodb/
Mongo
https://www.mongodb.org/
[video]
MongoDB Tutorial 1 What is MongoDB?
https://www.youtube.com/watch?v=liQzIsFnCr0
Introduction to MongoDB
https://www.youtube.com/watch?v=xOLwqUbpxGQ
MongoDB: It's Not Just About Big Data
https://www.youtube.com/watch?v=b1BZ9YFsd2o
http://projects.spring.io/spring-data-mongodb/
Mongo
https://www.mongodb.org/
[video]
MongoDB Tutorial 1 What is MongoDB?
https://www.youtube.com/watch?v=liQzIsFnCr0
Introduction to MongoDB
https://www.youtube.com/watch?v=xOLwqUbpxGQ
MongoDB: It's Not Just About Big Data
https://www.youtube.com/watch?v=b1BZ9YFsd2o
четверг, 20 марта 2014 г.
среда, 19 марта 2014 г.
spring reference applications
springside4
https://github.com/springside/springside4
A Spring Framework based, pragmatic style JavaEE application reference architecture.
spring-by-example
Spring by Example
https://github.com/spring-by-example/spring-by-example
http://springbyexample.org/
Spring by Example Repository, see http://springbyexample.org/ for documentation.
https://github.com/springside/springside4
A Spring Framework based, pragmatic style JavaEE application reference architecture.
spring-by-example
Spring by Example
https://github.com/spring-by-example/spring-by-example
http://springbyexample.org/
Spring by Example Repository, see http://springbyexample.org/ for documentation.
четверг, 13 марта 2014 г.
среда, 12 марта 2014 г.
apache camael + activemq + spring example
apache camael + activemq + spring example
apache camael + activemq + spring example
http://www.pretechsol.com/2013/08/apache-camel-spring-activemq-example.html#.UyBsGvnV8Zk
apache camael + activemq example
http://www.pretechsol.com/2013/08/apache-camel-activemq-exampe.html#.UyBsZPnV8Zl
Spring, ActiveMQ, Maven example
http://dimitrisli.wordpress.com/2010/12/15/spring-activemq-maven-example/
SpringActiveMQ-master
apache camael + activemq + spring example
http://www.pretechsol.com/2013/08/apache-camel-spring-activemq-example.html#.UyBsGvnV8Zk
apache camael + activemq example
http://www.pretechsol.com/2013/08/apache-camel-activemq-exampe.html#.UyBsZPnV8Zl
Spring, ActiveMQ, Maven example
http://dimitrisli.wordpress.com/2010/12/15/spring-activemq-maven-example/
SpringActiveMQ-master
вторник, 11 марта 2014 г.
Hibernate / Spring links
---- Tools
+
Setup of Dynamic Web Project using Maven
http://fruzenshtein.com/setup-of-dynamic-web-project-using-maven/
---- Hibernate
---
Introduction To Hibernate Framework
http://viralpatel.net/blogs/introduction-to-hibernate-framework-architecture/
Hibernate Maven MySQL Hello World Example (XML Mapping)
http://viralpatel.net/blogs/hibernate-maven-mysql-hello-world-example-xml-mapping/
HibernateHelloWorldXML
+
Setup of Dynamic Web Project using Maven
http://fruzenshtein.com/setup-of-dynamic-web-project-using-maven/
---- Hibernate
---
Introduction To Hibernate Framework
http://viralpatel.net/blogs/introduction-to-hibernate-framework-architecture/
Hibernate Maven MySQL Hello World Example (XML Mapping)
http://viralpatel.net/blogs/hibernate-maven-mysql-hello-world-example-xml-mapping/
HibernateHelloWorldXML
воскресенье, 9 марта 2014 г.
Setup of Dynamic Web Project using Maven
Setup of Dynamic Web Project using Maven
http://fruzenshtein.com/setup-of-dynamic-web-project-using-maven/
Create a Dynamic Web Project with Maven in Eclipse Juno
https://www.mhus.de/wp/create-a-dynamic-web-project-with-maven-in-eclipse-juno/
Today I want to talk about Maven. It’s very powerful instrument and if you know how to use it you will make minimum effort to achieve maximum result. In general Maven helps you to manage a project including library dependencies, building process and etc… But in the article I’m going to show you one of the ways how to create a Dynamic Web Project using Maven (in Eclipse IDE).
Pre-requirements:
Pre-requirements:
- Eclipse IDE for Java EE Developers
- M2E plugin for Eclipse
- Maven
1. File > New (Alt+Shift+N) > Dynamic Web Project
- Input some name for the project in the “Project name” field (e.g. mavenDWP);
- Select some “Target runtime” (I use Apache Tomcat 7.0);
- Click on the “Next” button;
- Create the following directory structure (please pay attention to the directory structure. It’s an important detail in the creation of Dynamic Web Project):
среда, 5 марта 2014 г.
Create repository on GitHub - easy way
1) download GitHub for Windows
http://windows.github.com/
2) create repository in github site
3) clone [GitHub for Windows]
4) GitHub for Windows -> Open in explorer
Copy required files in this folder
3) GitHub for Windows -> Open a shell here
git add .
4) git commit -am "first"
5) git push
6) Just in case - about generation ssh keys
https://help.github.com/articles/generating-ssh-keys
http://windows.github.com/
2) create repository in github site
3) clone [GitHub for Windows]
4) GitHub for Windows -> Open in explorer
Copy required files in this folder
3) GitHub for Windows -> Open a shell here
git add .
4) git commit -am "first"
5) git push
6) Just in case - about generation ssh keys
https://help.github.com/articles/generating-ssh-keys
воскресенье, 2 марта 2014 г.
Developing a Web Appliction on Tomcat
http://oak.cs.ucla.edu/cs144/projects/tomcat/index.html
Developing a Web Appliction on Tomcat
In this tutorial, you will learn how to develop a Web application for Tomcat using Java servlet and Java ServerPages (JSP) technologies and package it as a Web application archive file. Before you get started if you do not know how to start/stop the Tomcat server on our VM, please read the Tomcat startup instruction.
MySQL Java tutorial
http://zetcode.com/db/mysqljava/
MySQL Java tutorial
This is a Java tutorial for the MySQL database. It covers the basics of MySQL programming with Java. In this tutorial, we use the MySQL Connector/J driver. It is the official JDBC driver for MySQL. The examples were created and tested on Ubuntu Linux. You might also want to checkJava tutorial, PostgreSQL Java tutorial, Apache Derby tutorial or MySQL tutorial on ZetCode.
JDBC
JDBC is an API for the Java programming language that defines how a client may access a database. It provides methods for querying and updating data in a database. JDBC is oriented towards relational databases. From a technical point of view, the API is as a set of classes in the java.sql package. To use JDBC with a particular database, we need a JDBC driver for that database.
понедельник, 17 февраля 2014 г.
Levi9 - One Common Goal
http://www.levi9.com/one-common-goal/
“Most companies who think their IT service provider is aiming for the same goal as they themselves do, are wrong.
A true common goal can only be achieved with clear, seamlessly aligned objectives and the guarantee that every team member is able and allowed to act upon them”.
The software development business is a people’s business. Engineers are looking for technical challenges and hard to solve problems. It is up to the sales division to understand what is needed during the different projects and how this matches with operations.
вторник, 11 февраля 2014 г.
вторник, 28 января 2014 г.
Чак Норрис и в программировании Чак Норрис!
https://plus.google.com/+IlyaBogdanovski/posts/HXFewSPggUs
Chuck Norris can make a class that is both abstract and final.
Chuck Norris serializes objects straight into human skulls.
Chuck Norris doesn’t deploy web applications, he roundhouse kicks them into the server.
Chuck Norris can make a class that is both abstract and final.
Chuck Norris serializes objects straight into human skulls.
Chuck Norris doesn’t deploy web applications, he roundhouse kicks them into the server.
Подписаться на:
Сообщения (Atom)