JetCracker

Life-time learner's blog

Category Archives: Life and Work

Fashion Designer: Ralph Lauren

I know absolutely nothing about fashion. Frankly speaking, sometimes I found it difficult to go shopping and buy some clothes. Really!… When I go to some clothing store in order to buy jeans, the only thing I think of is how to pick up something and get out of there. Once, I had to ask my friends to help me out and go with me. Is it silly?.. Many people have some issues – that is mine.

Even though I am a complete newbie in fashion, I have to create a report about any fashion designer I like. You know what: they all suck! 🙂

I should probably write something about one fashion designer in order to make them get off me (and by them, I imply my English teacher). So, I looked into Wikipedia and came across one interesting name – Ralph Lauren.  Let’s see who he is and what he is. Read more of this post

darth_vadly: TENEBA PARTUM

Take a listen to the piece of work of one young and promising composer (and a friend of mine)! Waiting for your comments.

For those who are interested: http://soundcloud.com/darth_vadly/

P.S. “I KEPT MY BIRTH”.

[English] [Subcultures] Goths

Our teacher asked to make a small report on any subculture. I chose Goths. In this article I’ll try to show you what they are. As I don’t belong to any subculture at all, my report probably won’t be accurate and objective. Anyway, I’ll give it a try.

In my report I would like to answer the following questions:

  • What is a Gothic subculture?
  • What is the origin of goths?
  • How do they look like nowadays?
  • What do they do?
  • What is the public attitude to goths and how do they live together with other subcultures?

There will be some photos which I found on the Internet. Enjoy! Read more of this post

I used to do …

Long time ago (on October, 26 to be precise) our teacher asked us to make a short story about ourselves. We have to use ‘used to’ and ‘would’ in order to describe our past habits and actions.

As for me, I don’t like this type of tasks. I have a lot to say about what I used to do when I was a child, but I don’t want to make it as a some kind of essay, in written form. Ask me anything – and I tell you about it. I can speak about myself a lot but I don’t want to write…

I have put off doing my homework for very long, so I ran out of excuses. There is one question before me, and one answer is required. The question is ‘What did I use to in my childhood?’. In this article I’m going to solve my problem with writing about myself and get rid of it once and for all! >> Read more of this post

[Java Web] [QapTcha] How to add captcha to JSF page

If you want to have prevent spam in your website, you probably need to use captcha.

CAPTCHA (play /ˈkæp.tʃə/) is a type of challenge-response test used in computing as an attempt to ensure that the response is generated by a human being. The process usually involves a computer asking a user to complete a simple test which the computer is able to grade. (Wikipedia)

Early CAPTCHAs such as these, generated by the...

You can see the examples of captchas on the pictures. Captcha is intended to protect the web site from spam, and it helps to avoid “unwanted” registrations, block robots. But it can also deter some “proper” users. As for me, I hate recognizing captchas!

What we need is a simple and user-friendly mechanism to detect robot. Fortunately there are plenty of different solutions for captchas on the internet!

Take a look at QapTcha – a simple, easy-to-use and intuitive captcha system. It needs human action instead of to read a hard text and it is a very lightweight jQuery plugin.

QapTcha Demo Screenshot

All you need is to drag the button from one side to another, and that makes it perfect for mobile devices.

Here I will show you an example of how we can embed this captcha into JSF web-application.

Read more of this post

Reshaka.Ru – Помощь студентам и школьникам

Reshaka.Ru logoВ наши дни студенческая жизнь стала очень сложной, особенно если приходится совмещать работу и учебу. Вы должны решить целую кучу задач, вовремя сдать все задания, написать курсовую, подготовиться к зачету и сдать все экзамены. В вашем расписании огромное количество никому ненужных предметов, а их все нужно как-то сдавать…

Но теперь у вас появилась Reshaka.Ru!

Проект Reshaka.Ru – это новый сервис для студентов по решению задач, подготовке домашних заданий, написания рефератов, курсовых, дипломных работы, а также онлайн помощи на экзамене.

Мы предлагаем вам надежные гарантии, очень низкие цены, современный и понятный пользовательский интерфейс. Наша команда готова помочь вам 24 часа в сутки 7 дней в неделю. Мы решаем задачи по математике, физике, химии, программированию, теоретической механике, сопромату и многим другим предметам.

Закажите решение задачи прямо сейчас и узнайте, сколько стоит работа. Обещаю, вы не пожалеете!

Официальный сайт:                                    http://reshaka.ru
Официальная группа Вконтакте:            http://vk.com/reshaka
Наше приложение Вконтакте:                  http://vk.com/app2965828

Нужно сделать кучу домашней работы, написать контрольную или курсовую, а времени нет? Мы без проблем выполним за вас работу в самом лучшем виде!

Reshaka.Ru - Order Solution to Your Problem

Заказать решение задачи

Завтра экзамен по нелюбимому предмету? Жалко терять драгоценное время на подготовку ?
Мы и тут выручим вас! ЗакажитеОнлайн помощь” и идите спать спокойно!

Reshaka.Ru - Online Help in the Exam

Заказать Онлайн Помощь на экзамене

 

Reshaka.Ru

Reshaka.Ru logoStudent life is very tough and complicated, especially if you have to combine studying and work.You have to solve a heap of problems, hand in assignments on time, pass a lot of exams. There are a lot of subjects on your curriculum and there is no way you will handle it…

Not since the Reshaka.Ru came out!

Meet our new project: Reshaka.Ru is a new online service for students to solve problems, do your homework, create a project, online help in exams.

We offer reliable guarantees, extremely low prices, friendly and automated interface. Our team is ready to help 24/7. Order a solution to your problem now – and you will never regret!

Official Website:                         http://reshaka.ru
Official Group at vk.com:         http://vk.com/reshaka
Official vk.com app:                  http://vk.com/app2965828

Reshaka.Ru - Order Solution to Your Problem

Order Solution to Your Problem

Reshaka.Ru - Online Help in the Exam

Online Help in the Exam

View russian version.

P.S. The article is aimed at Russian audience. If you are not in Russia, please ignore it.

[JSF 2] [Overriding Renderer] How to add custom attributes to component

I’ve been working with JSF for almost a year, and sometimes standard components are not enough for rendering rich  HTML5  pages.

For example, if we need to have a placeholder attribute on a particular HTML5 input element, we just write:

<input type="text" name="login" value="" placeholder="User name"/>

Unfortunately, standard JSF 2 library’s component InputText was designed for HTML4 and doesn’t support attribute ‘placeholder’ (as well as other non-standard attributes, such as ‘autofocus’, ‘autocomplete’). So, the following code won’t work because the ‘placeholder’ attribute will be ignored by standard JSF TextRenderer.

<h:inputText value="#{loginBean.login}" placeholder="User name"/>

What if we really need to have placeholder in our input components? One solution would be using third-party libraries, such as PrimeFaces, or RichFaces. The provide placeholder (they call it ‘Water Mark’) and a lot of other features out of the box.

This solution has its drawbacks. Third-party libraries (like PrimeFaces) are quite difficult to cusomize, for the one thing. Besides, they have got their own issues and may not work as we expect. Also, sometimes in some projects we are not able to use these libraries.

We used PrimeFaces 3.1.1 library in our project Reshaka.Ru, and the library really disappointed me. File Upload component doesn’t work properly, dialogs are incorrectly rendered in most browsers. There are many bugs, and it seems to me that PrimeFaces team is not going to fix them. That’s why in our future projects, I won’t use it.

Let’s get back to the main point. 🙂 In order to add custom attribute, we can override standart JSF component Renderer.

Read more of this post

[WordPress] Is WordPress.com banned in Russia?

Hi!

For almost 5 days I have not been able to get access to any wordpress.com blog.

First, I thought it was a wordpress.com issue and some blogs didn’t work everywhere. But recently, I’ve found out that many users in Kazahstan and in Russia experience this problem, too.

For more information go to http://www.neweurasia.net/media-and-internet/update-on-wordpress-woes-in-kazakhstan-and-kyrgyzstan

Read more of this post

[Java] [Glassfish 3] Wrong character encoding in multipart servlet request

Hello!

It’s been a long time since I posted here, but I’m currently very busy with my study, work and projects.
Recently we had a problem with processing multipart HTTP requests in Java servlet. We are using Glassfish 3.1.1 as application server. The thing is despite of the fact that HTTP request had UTF-8 encoding, all string data actually were in ISO-8859-1 (a.k.a. ISO-LATIN-1).

I tried several different approaches to set encoding to UTF-8… until I came across the following: http://java.net/jira/browse/GLASSFISH-18516. As I understood, It says that there is a known issue in Glassfish 3.1.2 with incorrect interpretation of character encoding of multipart HTTP request parameters. Instead of UTF-8 it applies ISO-8859-1 ignoring settings in configuration files (web.xml, glassfish-web.xml) and in HTTP request. Turns out, this issue also affects Glassfish 3.1.1, which is used in our project.

Read more of this post