Sunday, September 4, 2011
Right question in scala world
Saturday, July 23, 2011
I have done
There's a place
I have gone
There's a beast
And I let it run
Now it's running . . .
My way
There are things
I regret
To can't forgive
You can't forget
There's a gift
That you sent
You sent it . . .
My way
(Chorus)
So take this night
Wrap it around me like a sheet
I know I'm not forgiven
But I need a place to sleep
So take this night
And lay me down on the street
I know I'm not forgiven
But I hope that I'll be given . . .
Some peace
There's a game
That I play
There are rules
I had to break
There's mistakes
That I made
But I made them . . .
My way
(chorus)
So take this night
Wrap it around me like a sheet
I know I'm not forgiven
But I need a place to sleep
So take this night
And lay me down on the street
I know I'm not forgiven
But I hope that I'll be given . . .
Some peace . . .
Some peace . . .
Some peace
http://www.youtube.com/watch?v=8cucFfpsqf8
Wednesday, June 29, 2011
The Tao Te Ching (2)
other things become ugly.
When people see some things as good,
other things become bad.
Being and non-being create each other.
Difficult and easy support each other.
Long and short define each other.
High and low depend on each other.
Before and after follow each other.
Therefore the Master
acts without doing anything
and teaches without saying anything.
Things arise and she lets them come;
things disappear and she lets them go.
She has but doesn't possess,
acts but doesn't expect.
When her work is done, she forgets it.
That is why it lasts forever.
Sunday, May 8, 2011
Attitude, to me, is more important than facts. It is more important than the past, than education, than money, than circumstances, than failures, than successes, than what other people think or say or do. It is more important than appearance, giftedness or skill. It will make or break a company... a church... a home.
The remarkable thing is we have a choice every day regarding the attitude we will embrace for that day. We cannot change our past... we cannot change the fact that people will act in a certain way. We cannot change the inevitable. The only thing we can do is play on the one string we have, and that is our attitude... I am convinced that life is 10% what happens to me and 90% how I react to it.
And so it is with you... we are in charge of our attitudes.
Friday, September 17, 2010
The ability to prediction
I got the task to implement the monitoring system. This system must to monitor some resources like database tables, web services, web pages and etc. But I got task only for database tables and it was impossible to predict future resources. But from my experience I got feeling that it will be some growing. And despite of pressure from my manager I was implementing system taking in mind future growing of requirements and therefore system. So I implement system using principle “Program from Interface”. And afterword It helped us to reduce amount of code and therefore time for implementation. So following three subsystems like web services, web pages and flash I implemented using Interfaces from first system.
Summarize.
Try to predict future growing of system. Program from interface not from implementation.
Tuesday, September 14, 2010
Wild Cards and Generics in Java. Collections vs Arrays.
Collections are very useful instrument for store and work with data. In previous versions of java collections can replace arrays only partly. But started from version java 5 we can completely replace arrays. Because we can use autoboxing, so it does not matters you put primitives or objects in collections. But we still have some restriction, for example when you declare method for some collections
use(List < Item >)
b
So you can do it with wild cards.
For example ItemA extends Item
so we can call method
If you want to change collection you need to use another wild card
use(List < ? super Item >)
You may find it helpful to think of ? extends T as containing every type in interval bounded by null
below and T above (where null is a subtype of every reference type). Similarly, you may think of
? super T as a containing every type in an interval bounded by T below and Object above.
Another one topic is arrays. Arrays are covariant, meaning that type S[] is considered to be a subtype of T[] whenever S is a subtype of T.
Integer[] ints = new Integer[] {1,2,3};
Number[] nums = ints;
nums[2] = 3.14; // array store exception
assert Arrays.toString(ints).equals("[1, 2, 3.14]"); // uh oh!
In this fragment we got runtime exception.
but if we will use wild cards
List
List
nums.put(2, 3.14); // compile-time error
assert ints.toString().equals("[1, 2, 3.14]"); // uh oh!
We got compile time error, and it is more better because we will get to know about error earlier and errors is detected by the compiler.
Apart from the fact that errors are caught earlier, there are many reasons to use collections instead of arrays. Collections are far more flexible than arrays.
I can suggest only one case when array can be more efficient then collection. Arrays of primitives when you avoid boxing can be more efficient but only because compiler. I believe future compilers may optimize collection classes specially.
To summarize, I suggest to use collections rather then arrays expect case of backward compatibility. I believe covariant arrays are an artifact of the lack of generics in earlier versions of Java.
Sunday, August 22, 2010
Сытую жизнь, перспективную работу
Молиться Богу и просить богатства
Всё это вызывает только рвоту
Тот, у кого есть мозги и руки
Никогда не пропадёт от голода и скуки
Никогда не станет рабом чужой воли
Ведь это страшнее голода и боли
Он не станет рабом судьбы
Вещей, системы — ничего не надо…
(с) Lumen — «Далеко»
— Карлос Кастанеда «Колесо времени»
Генри Форд
- Минерал ? Вы говорите о силиконе, содержащемся в компьютерных чипах?
- Конечно, и еще о кристалах. Кристаллы квартца, которые придают ритм потоку электронов, относятся к камню так же, как мудрый человек к человеку дикому. Объединение гороного хрусталя и сознательного человека дает живой компьютер. Это и есть путь эволюции.
- Но компьютеры - это неподвижные объекты!
Достаточно их обесточить и все остановится.
Не стоит заблуждаться, Мишель. Блягодаря интернету существуют программы, кторые , как вирус могут прятаться в любом компьютерном устройстве. А выключить все машины в мире невозможно.
После биосферы и идоесферы появляется компьютеросфера.
Я не знал, что в Раю тоже можно увлекаться информатикой.
("Империя Ангелов" Бернар Вербер)
Цель жизни - попытка как-то очеловечить, одушевить и умилостивить мертвый и всемогущий полупроводниковый мир, проносящиеся по которому электронные импульсы определяют человеческую судьбу. Ведь даже богатство, к которому всю жизнь стремится человек, в наши дни означает не подвалы, где лежат груды золота, а совершенно бессмысленную для непосвященных цепочку нулей и единиц, хранящуюся в памяти банковского компьютера, и все, чего добивается самый удачливый предприниматель за полные трудов и забот годы перед тем, как инфаркт или пуля вынуждают его перейти к иным формам бизнеса, так это изменения последовательности зарядов на каком-нибудь тридцатидвухэмиттерном транзисторе из чипа, который так мал, что и раглядеть-то его можно только в микроскоп.(Виктор Пелевин)

“Fly me to the Moon…let me dance among the Stars…” I hope we never lose our sense of wonder. A passion for exploration and discovery is a noble legacy to leave to our children. I hope we set our sails and venture out one day. That will be one glorious day…
http://twitpic.com/2h7j8y
Tuesday, March 30, 2010
Result of conversation with my friend Povlo.
He told me about his dream. It is traveling. He wants to leave his job and spend all his time for traveling. He only needs to make up your mind to leave job.
It was period in my life when I did it. I quit and made what I want until I had money. It was funny. But now I don't have such idea I even think it's bad. I truly believe that exists the way to work with pleasure and with rest and with traveling .
Sunday, October 19, 2008
Metaphor
I started to read "Refactor.Your.Thinking.Pragmatic.Thinking.and.Learning". Actually I've interested in human mind recently, so this book like treasure for me. And I Write some quotes from this excellent book
"Positive emotions are essential to learning and creative thinking.
Being “happy” broadens your thought processes, and brings more of the brain’s hardware online ."
“Metaphor, a common ground for both verbalizations and images, is a way to voyage back and forth between the subconscious and conscious, between right and left hemispheres.”
About metaphor I already read in "Code Complete" by Steve McConnell. And If two create guys mentioned this, I think It very impotent.
"An algorithm gives you the instructions directly. A heuristic tells you how to discover the instructions for yourself, or at least where to look for them.”
How do you use software metaphors? Use them to give you insight into your
programming problems and processes. Use them to help you think about
your programming activities and to help you imagine better ways of doing
things. "
I think metaphor is very suitable and I'm gonna use it. After some period of using metaphor I'll describe my experience.
Friday, September 26, 2008
Monday, September 22, 2008
Make choice
If you want to archive something in your life you must make the choice what you really want. But when you have made this choice, never hesitate. The choice is very important. If player has never made choice, he has never won. You must make the choice. You must kill every your hesitations. Rate of play is made. So Play was begun. Throw your hesitation and make everything to win this competition.
Saturday, September 20, 2008
Study human mind
Computer engineers working with more sufficient structures then nature sciences(physicist, biologist, etc.) because in nature everything is made by God (or universe if you want ) and this everything must be logic and simple. But computer programs is made by people and we can be sure everything is logic. But lets look from another side. Computer programs is made by people thoughts. This thoughts is made by humans mind so computer engineers are very close to mechanisms of working of human mind. I think it is no coincidence that computer engineers attempt to create artificial intelligence. Because mechanisms of human made is every where in computer science. We must study human mind because it is key to everything.
Believe in what you are
If you want to became someone. First of all you must believe in you that you are professional. You must accept you a programmer. You have enough ability and talent for this profession. And main impotent thing you must like it. For example I am programmer I like make computer program, mostly I like working with data structure, concurrency and patterns.
I improve my knowledge every day. I want to apply my programming skills to useful sides of people life. For example healthy, science, biology, astronomy.
I believe information technology is blood of modern science. For example without search engine we even can't find anything in bulk of information.