Livada cu Cireși 2015

August 30, 2015

Was a very nice MTB competition.

There are 4 Routes:

  • Family (Adult + Child under 14)
  • Sprint (15 Km)
  • Standard (30 Km, 15 Km x 2, where I was)
  • Epic 45 Km

I won’t get too much into details that you can find yourselves from:

As far as the price goes it’s better to buy a Season Pass for 3 Competitions. You can register at any time to the competition (unless all places are sold out!), you don’t need to do it way in advance to get a good deal. But be careful, when you ‘reserve’ a place, you automatically use one of your 3 events from your pass (which I find dumb). If you don’t have a Season Pass, you can make a reservation when the price is low and pay way later (not immediately after few days of the reservation like in most competitions), which by the way seems better. (this is why I find that dumb)

There were no problems with parking the car. Also arriving there was very easy from Bucharest. I saw lots of cars carrying bikes and I was always saying they are going to this competition also, it felt nice.

The start place was a little crowded, with cars parked on both sides, but it didn’t bothered me that much. Sprint and Standard started at the same time and this made it crowded on the first half of the first lap. I liked the start better at La Broaște where the start was given in waves even for the same Route.

The route has some challenges going uphill, I found only one place to be ‘impossible’ to climb on the bike (was hard to climb even by foot 🙂 ). And the descent is very nice, is not that frightening and it’s not dangerous also if you pay attention.

At the end we had some Pasta which was very delicious (comparing to Cluj Marathon for example) and the most intelligent thing is that you didn’t needed some stupid voucher given to you with the Kit, that you 90% forget in the car/home, so you don’t end up without food (like it happened to me and lots of others at Semimaraton Brașov, which by the way was the most stupid thing in this world, I’m being passive aggressive here).

The overall experience was a very nice one. 1000 times nicer than Prima Evadare which passive aggressively I hate.

I will put here a picture of me:

226 I’m the 226 guy.

Why we hate bikes in traffic ?

June 20, 2013

I recently saw an article about some bicyclist involved in an accident from which he was the one considered guilty by the police. In that article it wasn’t discussed if the bicyclist was guilty or not, but the bad ‘image’ that this might do to the ‘bike community’ who is struggling so much to obtain some rights from the city hall. This brought to my mind the struggle of the Gay ‘community’ who are struggling to obtain some rights, which is pretty sad.

The problem is deeper and it comes from the cynicism of people, we tend to pick random things to hate or feel annoyed by, with no particular reason, we just decide to hate or like things (too bad we decide to hate more than to like). Some people hate taxi drivers, some hate bikers, people without cars hate people with cars, some hate old people, some hate young people, some hate successful people, some hate lazy people, some hate others because of their faces, clothes, or voice, without even interacting with them, … we just pick a side (and sometimes switch sides).

I’m a biker too and I used to ride my bike only outside Bucharest in offroad regions and at competitions, because I knew/thought biking on Bucharest streets is dangerous (when I had to, I used the sidewalk, but there you are slower as you have to pay attention to other people, and there are also more bumps), also dogs bark at cyclist. Once, I had to meet a friend in the other side of Bucharest to ride the bike in Titan Park and I put my bike in the car and went there with the car (yeah I did that) because it felt safer.

The need ‘taught’ me that it is ok to ride my bike in the city (the need is losing my driving license for 30 days, don’t ask how :D) and I realized that I didn’t found any bad ‘accompaniment’ in traffic, I tend to have very good sense in not disturbing other cars, and drivers see that and I think they respect me for that, I also turn my head to drivers who might make a risky maneuver to see if they saw me, and this kind of makes them more aware of my presence. I’m also not afraid of dogs anymore, this comes mainly from my confidence that if a dog barks at me I will stop and ‘convince’ him that it’s not ok to bark at cyclists … ever … (if we all do this, they will start running from us instead of barking).

I live at 3,5 km from where I work and it takes me 7 minutes to get to work with my bike, around 20 min with the Bus (I do take the Bus when it rains or when I’m dressed more elegant than t-shirt) and 15 min by car (driving like in NFS and using all the shortcuts). These are summer times, because in the rest of the year you can sometimes double it. When I arrive at work I’m full of energy, I can carry a backpack with clothes for gym or with food (if I pick to eat at the office) and I change my T-shirt. At the office we have a special place for tying our bikes and there are many people arriving at the office by bikes, which gives you a better feeling not being the only one.

As these ideas aren’t very tightly related I will tell you the conclusion for bikers (or future bikers) and for bike haters (or future bikers):

For bikers:

special places to tie our bikes safely will increase the number of kilometers rode by bike by people daily

– if you are polite when riding your bike you will get positive feedback from drivers

– fuck dogs

– we all know the benefits of doing some sport daily, but the biggest benefit is that you arrive faster where you want (and cheaper), if we only had confidence that it’s a safe option, more people will come into this

For haters:

– if you were normal people walking, you weren’t in your car and the biker wasn’t on his bike, would you punch him ? if not, then don’t accident them in traffic, because they aren’t protected and the damage you will do won’t do any good to you or him

– even though our hate is artificial, when you see a bike in traffic you should thank him for letting its car at home so that the traffic is lighter

– using the bike is far less cheaper, the probability of being involved in an accident is smaller (if you drive like me :D), you feel more good about yourself and a sport like this can attract you to other sports, so the benefit will grow exponentially. You don’t have to be fit to ride a bike, all kinds of people ride bikes. Bikers greet other bikers when they meet, comparing to drivers swearing at other drivers (or basically at everything/everybody) when they meet. Cars make you bad, because you’re nervous because of the traffic, the parking place, the costs. On the other hand the bikes cheers you, because you feel free, you feel energetic, you got the power

– you don’t have to ride your bike every day, you can take the bus, you can go with your car, but if we find the best balance we can manage to live in a big populated city in harmony (without traffic jams and dumb nerves)

Bottom Line:

“When you see a biker on the street thank him for letting his car at home.”

Very Technical Presentation about 1z0-897

June 4, 2013

Certification Title : Oracle Certified Expert, Java EE 6 Web Services Developer

Exam : Java EE6 Web Services Developer Certified Expert Exam (1z0-897)

Duration: 90 minutes

Number of Questions: 60

Passing Score: 64.00% (but not all 60 questions are taken into account, usually one or two are left out)

Format: multiple choice (it’s specified the number of correct answers, and also it could contain ‘all of the above’ option)

You can take the exam at any Pearson Vue center, you must have a Pearson Vue account in order to take the exam, you will get all the instructions when you register for the exam, one thing to keep in mind is that you will need two ID cards with photo. 

About the exam:

It’s not a very difficult exam, but there’s no such thing as a single book / course dedicated for the exam that will be enough, and you need to gather your own sources. There is some information on coderanch forum and you can also browse in the topics.

You can also find the exam’s objectives on oracle page, but it’s very vague.

I will tell you all the materials that I studied from, but keep in mind that this is more than the exam requires, yet it does help you to understand in depth the topic if you’re interested.

You will need to have/gain some basic knowledge about HTTP, MIME, XML, XSD, Java, EJB, Servlet Container.

Read to understand, practice a lot, do mock tests, look at the API and at the XSDs for all XMLs you’re interested in, search on Google/Wikipedia what it doesn’t make sense.

What does it cover:

XML: well formed, elements, attributes, default attributes

XML namespaces: prefix, default namespace, namespace inheritance from parent element, qualified/unqualified

URI: form scheme://host:port/path?queryString#fragment (URL < URI)



Web Services in general: coarse grained, platform neutral, transport neutral, based on ubiquitous standards: XML, XSD, better than the other alternatives (although not faster, it is the de facto integration model between no matter how different applications)

SOAP: Envelope, Header, Body, Attachments. SOAP 1.1 / 1.2

WSDL: know every tag and purpose of every part, RPC/Document <part type/element, WSDL 1.1 (/ 2.0 it’s not on the exam but if you’re curious).

WSI-BP 1.1: what’s its purpose, ex: requires XSD schema (WSDL suggests using XSD), only UTF-8/UTF-16, prohibits SOAP Encoding (XSD schema renders it obsolete), conformance claim

JAX-WS:generated proxy & dynamic dispatch, IN-OUT parameters, wrapped request/response, restrictions on classes

– Annotations JAX-WS: you should have an idea about all of them and their attributes, and you should know the main ones: @WebService, @WebMethod, @WebParam, @WebFault, @OneWay, @WebServiceClient, also you sould know the defaults in absence of some annotation.

webservices.xml: you should be able to configure / override / suplement the annotations with XML, just common sense not knowing it by heart.

SOAP Web service java clients:, generated proxies, dynamic dispatch

EJB, Servlet, POJO: publish as WS, and particular information about each type, which EJBs can be published as WS, what you get from an EJB WS. Some configuration ejb-jar.xml / web.xml, especially for security: method security / url-pattern security

Attachments/MTOM: how a HTTP Request for a SOAP Message with attachments looks like, configure MTOM in multiple ways on Server/Client, MIME types and mapping to Java types, base64 encoding default, XML Infoset (addresses XML performance)

– Asynchronous: general Asynch WS, and Asynch processing in java of Synchronous WS with java.util.concurrent.Future / AsyncHandler. How to enable Asynch.

Addressing: how to enable it and few details about it

SAAJ: SOAPMessage, SOAPEnvelope, SOAPHeader, SOAPBody, AttachmentPart. API for manipulating SOAP Message similar to DOM, but targeted for SOAP Messages, as opposed to arbitrary XMLs in the case of DOM, SAAJ classes extend DOM classes.

SOAP Faults, Exceptions: SOAPFaultException / SAAJ SOAPFault class, checked exceptions, SOAP Fault elements: faultcode, faultstring, faultactor, detail.

Handlers: Logical/SOAP, order for incoming / outcoming messages

wsimport: WSDL-to-Java, JAX-WS customizations

JAXB: customization files, internal structure, Java-to-XML, XML-to-Java


Packaging: .war, .jar, WEB-INF(META-INF)/wsdl/bla.wsdl, WEB-INF(META-INF)/webservices.xml

Security: JavaEE: a lot about servlet, also about EJB and JavaSE, how is HTTPS established, Transport security vs WS-Security: encrypt whole message or just some parts, security remains even after arriving in the target system. Authentication: credentials, Integrity: Digital Signatures, Confidentiality: Encryption. Symmetric vs Asymmetric encryption, public key, private key, trusted authority

WS-Security: very high level, XACML, XKMS, SAML, XML Encryption, XML Digital Signatures, Canonicalization

WSIT: WS-*, very high level, how to specify WS-* in WSDL, how it is carried in the SOAP Header (ex: WS-ReliableMessaging : enables systems to recover when messages in a given sequence are lost in transit or delivered out of order)


    – REST philosophy: addressable resources by URI, a uniform, constrained interface, representation-oriented: different format as the requested by the client, communicate statelessly, HATEOAS: navigation links in the response

   – EJB, POJO, Servlet, JAX-WS to publish REST (@WebServiceProvider)

   – @Path

   – resource method/sub-resource locator

   – @Produces

   – @Consumes

   – @PathParam/MatrixParam/QueryParam/FormParam/HeaderParam/CookieParam (@DefaultValue)

   – @GET/POST(nonideimpotent)/PUT/DELETE (CRUD)

   – JAX-RS Annotations

   – configure servlet to enable JAX-RS, Application class, deployment

   – Exceptions, ExceptionMapper, HTTP Codes

   – Providers: MessageBodyWriter/MessageBodyReader

   – HTTP Content Negotiation (MIME Types, most specific wins)

   – HTTP Response Codes, HTTP Headers

   – Cache, Conditional GET

   – Security: WebContainer & EJB methods if EJB

   – Clients: Servlet, JAX-WS (with XML binding, instead of SOAP), JavaSE, Jersey

   – JAX-RS mapping between Mime Type to Java class

   – @Context: inject different stuff

   – UriBuilder: API for safely building URIs

   – Response.ResponseBuilder: API for safely building HTTP Responses with headers and http codes


What it doesn’t cover:




– WSDL 2.0

Suggested materials:

– Java Web Services Up and Running, Martin Kalin

– Richard Monson Haefel J2EE Web Services

– Restful Java With JAX-RS

– SCDJWS 5 Study Notes, Ivan A Krizsan

– JavaEE 6 Tutorial (Web Services part)

JAXB Tutorial


– Wikipedia & Google when I didn’t understood something (especially on WS-*)

JavaEE6 API (relevant WS stuff)

JavaSE6 API (relevant WS stuff)

– XSD Schemas for : xsd, wsdl, soap, soap-envelope, web.xml, ejb-jar.xml, webservices.xml

Mock tests:

– ezpractice labs

– ucertify

– ? Mikalai Zaikin’s OCE WSD 6 Quiz

How I learned 100 decimals from PI, and what this teaches us ?

June 3, 2013

Few months ago I was thinking about how many things we keep in our minds, all the passwords, usernames, strange words, song lyrics, poems, quotes, and as I always was fascinated in the cognitive science, I thought I would do a little experiment on me, so I picked a symbolic number PI (kind of helps for my faith in learning, instead of a random keyboard hazard typed number, and also it’s universally available, no matter where you are you can tell somebody that you know the first 100 digits from PI and they can test you finding it on the internet).

So this is PI:


(yeah I just typed it, I didn’t copy-pasted it from the Wikipedia :P)

as I learned PI I also found that the world record is 67,890 digits, recited in China by Lu Chao in 24 hours and 4 minutes on 20 November 2005, and also about the history of PI, how digits were calculated and the fact that computers increased the calculated number of digits exponentially.

“Many persons have memorized large numbers of digits of π, a practice called piphilology. One common technique is to memorize a story or poem”, Wikipedia : but I find that stupid, and because I’m good with numbers, as I’m a programmer, I’m writing down my strategy of memorizing it. I must say that I learned PI few months ago, and I didn’t repeated it since then, and today I didn’t remembered much of it, but in one hour of retaking the ‘algorithm’ I started to have dejavus and in the end remembered it, so once you learn it you won’t forget it (like riding a bicycle, yet after a big pause you have some difficulties riding that bike, but after few moments you’re ready to go)


3. 14 15 92 65 389 79 | 32 38 46 26 43 38 327528| 84 1971 69 | 39 93 | 75 152097 444 59 | 2307 | 81 64 | 0628 6208| 99 | 86 28 03 48 | 2534 | 2117 06 79



– I made big groups of ~4 smaller groups of 2 digits, as I find that groups of two digits are easier to learn

– I colored similar digits and symmetric groups, as they are easier to learn

– also what seemed like a year I grouped it alone, perfect squares also are easy to learn

– two interesting groups were: 795028 with 75105820, where I made a correlation on them

– also the last 03, 06: because this groups started with 0 I knew that the first was with 3 and the last with 6


It did helped me to type them on the number pad, and also to speak them loud, in Romanian, then in English, I also tried to tell it in reverse, but it was harder and I found that I took individual big groups from the end and transformed the big group as I knew it in reverse order and then the next group and so on.

I learned in a progression: the first x digits, and I always added new big groups, which I repeated separately, and then added to the main group and repeated it all. The groups were easy to remember, it’s like knowing some telephone numbers, which is fairly easy, the challenge was to know which group came after which group.

The grouping it’s plain arbitrary and I could have chosen any type of grouping, but this is how they seemed natural to my brain, and I begun to think that there was some kind of coincidence in the fact that all small groups of 8 digits have some digits in common, or that some big groups are similar to some other big groups, but I think this is just because there are only 10 digits and the probability of groups to look similar is big enough.

I think(hope?) that anybody can do this, in their own unique way, and maybe there are some correlations made by people that intersect, which could mean something about how our brain works on numbers.

Why on earth would you spend time doing this ? Well because why on earth you spend a lot of time doing nothing interesting, watching TV, smoking, or who knows what. It’s not like you’re really busy, and it’s also a ‘game’ for your brain, it’s not like you’re wearing out your brain, it’s kind of the opposite. You can do it anywhere, in a Bus, at home, but preferably in a hammock. It’s nice to get out of the routine and do crazy things, all sort of things. Start small and then expand and share, you will find more and more.

The Secret Explained !

May 25, 2013

The movie “The Secret”, everybody knows it, few understand it, lots think it’s bullshit, I think it has a good message in it, but the way it’s expressed is stupid, but I always tend to skip the bullshit and success stories (which actually are meant to give you an impulse, to trigger your emotions, which should be a good thing) and get the main idea.

The main idea is that everything happens in our mind, don’t take the law of attraction too god damn literally.


– if you ask a person out and she doesn’t want to go out right then, she wants to lazy around at home and tells you to let it for some other time, if you get mad you will create a tensed situation or a fight, which will eventually kill the chance to see that person some other time.

Instead you can apply the secret rule, and be ok with it and do some other thing and not think about why she didn’t want to get out, as you will attract bad thoughts and you will somehow let the thoughts out and ruin it all.

Next time maybe you’re lucky and you will go out and have fun. Don’t kill the possibility with anger, because you only have to lose.

(Now if the person isn’t that eager to see you and prefers to lazy around at home, then you have some other problem, which the secret can’t help you).

– if you want to go at a certain show and you don’t have a ticket and all are already sold, instead of quitting or being sad and telling everybody how it sucks that you can’t go to that show that you always wanted to go, apply the secret rule and believe stupidly that you will 100% go to that show, and try to find tickets, on internet, from friends, and so on, and the chances are greater to find a ticket than if you just stood there sad pitting yourself.

(This is plain math: there are between 5 000 – 50 000 tickets available, from which a big part of tickets were bought online, people buying online are more willing to give up than the ones who go in person to buy a ticket, from all these tickets at least 1% are going to sell their tickets, there are at least 4 times the number of people wanting tickets than the resold tickets, 3/4 from these people don’t believe they will find tickets and will be ok with it, the other 1/4 will find tickets, if not with days before the show, directly at the show, or somehow get in fraudulently, but they will see the god damn show, because they applied the secret rule. Be in that 1/4!)

This is it about The Secret. The Secret solves only a part of your problems, there are lots of things you should consider in order to be a mature happy person, like: studying (not just school, any type of study, the learning resources are unlimited), risking, never giving up, being emphatic, exposing yourself to increase the chances of being the right person at the right time, not being lazy, improve your social skills, take care of yourself and appreciating yourself, being thankful for what you already have, and so on. Yet applying all these other things and failing to apply one or the other might not be enough for your happiness. The Secret is found in every other thing that can help you become happy and using The Secret will bring you all those things I just enumerated, this is why they make such a big deal out of it.

(Kids don’t have this problem, they always apply the secret, we somehow lose this ability when we get older)

Go on, pursuit your happiness!



ps: The Secret can be applied also when something bad happens, it’s up to you to perceive it bad and be sad about it and lose all the opportunities that might arrive and you can’t see them because you’re too busy being sad, or just acknowledge it, if you can do something about it, do, if you can’t, don’t try.

No matter how bad a thing is, you have to recover, you have no choice.

1. How should we use the internet

May 3, 2013

1. We should use the internet for

– google translate

– google maps

– wikipedia (for our curiosity)

– email

– communicate with remote people: chat, voice, camera

– find jobs

– play games ? find games

– find news that people all over the world are interested in, not that we are presented with like on TV

– finding books

– watching movies

– listening to music

– do our job

– stay / get connected with people who share some common things with you (though this can also be another topic, because usually the relations are made in real life and with the internet you just maintain them, because physically it would be impossible)

– writing a blog with things about your thoughts/life, like a self journal, for yourself and maybe for the community (giving back)

– develop a global view about what life is about (though this can make you frustrated if you see how other people are living and you’re not, or you could just be wise and try to use that for your own good)

– find reviews about things you want to buy

– buy old stuff / sell your old stuff

– book reservations all over the world, hotels / airplanes

– pay things, instead of going to the postal office and kill yourself

– laugh

– discover: things, places, events, food, ideas, everything that you’re subjectively interested in

– shazam

– share pictures

– take lessons: whatever they might be, new language, photography, musical instrument, sailing, skiing. (BUT here you should always do more things in real life, than just on the internet. Internet just helps 10%, but it helps nothing without real life practice and some friends to help)

– taking online classes

– use your imagination (you can reach everyplace with internet, you can use it to ‘test’ your ideas)

– …

Please continue with ways in using the internet ‘the right way’, feel free to split it by categories: age, country, sex.

Also if you use the internet in other ways, you might find that it’s wrong, and just stick with these ones (not abusing of them bien sûr).

Discovery could be a separate topic with all kind of things that you can discover, and the way you discover it. It’s very hard to discover things that you’re interested in, there’s no linear way of doing this, it just happens by accident. And also you will find that there are too much things that you like and they fade away if you don’t do nothing. You are disrupted by the fact that you must go to sleep or to work and the ideas vanish, just like dreams when you wake up.

The internet is like your dreams, very rich.

New topics to derive from this one:

– too much information (photography)

– school yourself

– discovery

– practical things: pay bills, book reservations, etc

– making friends

Hello World!

May 3, 2013

I just saw a movie with a guy trying to see how’s life without internet for a year.

And I just realized that an old quote of my decedent grandfather applies here:

“Asta-i timpul!” english: “This is the time!”

We shouldn’t try to eliminate from our lives the “gifts” that we have been given and try to live like Amish people.

Why eliminate just the internet ? Why don’t do the same with the telephone ? We wished this some time ago, when people were staying too much on the phone, but now they don’t, they use the phone how it should be used (I’m talking about plain phone, not smartphone).

Why not eliminate the electricity, the sewerage and go shit in the forest ?

The guy that stayed one year without the internet wished he would somehow find himself and the meaning of life. But he didn’t, he found only 10% of what he planned for, and the rest of the time he didn’t do much thing.

So what I’m saying is you shouldn’t blame the INTERNET for your problems, you shouldn’t USE the internet in a STUPID / useless manner. You should make the internet your friend, you shouldn’t kill your time with the internet, you should AUGMENT your life with internet.

So .. I’m going to answer the following questions in next posts:

1. how should we use the internet

2. how we shouldn’t use it

3. how often (depends on your job, country and other factors)

4. when is better to replace it with something else (or what are we missing because of it, and do we really miss or we didn’t need that anyway)

5. how can we do what we propose

From this topic I could easily create a new topic about life in this period, what things are good (because there are a lot), what things are bad, what things were good, what things were bad, what things will/should be good, what things might get bad.

And also from point 5 I can create a new topic about how we can do things we propose, how big things should we propose to achieve, etc.

New topics to derive from this article:

– relations with people through internet

– life in this period of time

– how to obtain what we want, and find if it’s what we really want or not, or if it’s suitable now or not