Заведите котика у себя в ЖЖ. Он реагирует на движения, может мяукать и мурлыкать- снимает стресс.
awakeЗаведите котика у себя в ЖЖ. Он реагирует на движения, может мяукать и мурлыкать- снимает стресс.
Добавляем тегу аттрибут onresize="if($('.topline').width <= 1105) {$('.topline').width(1106)}", где topline - класс тега, $() - стандартный асессор JQuery, 1105 и 1106 - предел и выставляемая ширина в пикселях.
Кросс браузерность и совместимость гарантируются JQuery, !DOCTYPE не нужен.
Причина - style="width: 100%" считается от ширины окна, не от ширины документа.
determinedКак определить что в input понаписано? Мой вариант -
function ischanum (cha) { //определяет цифирь
return (cha >= 48) && (cha <= 57);
}
function ischalwr (cha) { //определяет буквы нижнего регистра любого языка - проверено на русском и английском
return (String.fromCharCode(cha).toLowerCase().c
}
function ischaupr (cha) { //определяет буквы верхнего регистра любого языка - проверено на русском и английском
return (String.fromCharCode(cha).toUpperCase().c
}
function ischaspc (cha) { //определяет спецсимволы типа @#$%^&*()-_=+ итд
return ((cha >= 23) && (cha <= 47)) || ((cha >= 58) && (cha <= 64)) ||
((cha >= 91) && (cha <= 96)) || ((cha >= 123) && (cha <= 126)) ;
}
Возможно кому пригодится.
hopeful
Как известно из новостей, источник пищевой заразы в европе - мутировавшая бактерия E Coli, обладающая иммунитетом почти ко всем распространенным антибиотикам. В теории, появление штамма иммунного к такому количеству антибиотиков - вещь очень маловероятная, и весьма странная. На почве этого умозаключения некоторые товарищи даже предположили что все это - испытания биологического оружия ЗОГ (Кровавой гэбни, ЦэЭрУ, нужное подчеркнуть).
Лично моя версия - не нужно искать скрытую подоплеку в том что объясняется банальной глупостью и некомпетентностью. Дело в том что антибиотики в европе прописывают к месту и не к месту. К примеру, моя мальтийская коллега по работе сидя под кондиционерам заработала простуду. Казалось бы, что может быть проще - выпить горячего молока с медом и пару раз хорошенько выспаться. Но нет, европейская медицина не дремлет - коллеге прописали курс антибиотиков. Еще пример - как то раз, сильно переволновавшись на экзаменах и переев халвы (так совпало =)) я заполучил себе небольшую экзему. Первый же врач к которому я обратился, решил не размениваться на ерунду и попытался прописать мне курс гормонотерапии. Хорошо что у меня голова варит и я попросил прописать мне сначала нечто менее убойное. Без гормонов и антибиотиков.
Так вот, если привычка стрелять по воробьям даже не из пушки, из с-400, наблюдается у европейский врачей, то я могу себе представить какие огромные дозы антибиотиков колят скоту по принципу "лишь бы чего не вышло". Соответственно в данных условиях появление бактериальных штаммов устойчивых абсолютно ко всему на свете - лишь вопрос времени. Очень небольшого времени.
sleepy



array<stuff> это такой hashmap<int, stuff> где хеширующая функция - идентичность.
наконец то нарисовался дипломный проект - построение коррелятора на GPU языке CUDA. В связи с чем я ставлю юбунту и Qt на системник. Возможно системник будет проапгейжен до домашнего медиа сервера. Позже.
Затронул недавно тему пешеходов в камментах к одному френду.
Итак, на данный момент, моя официальная позиция - пешеход нарушающий правила (перебегает дорогу в неположенном месте не убедившись что машины хотя бы видят его и имеют возможность затормозить) принимает ответственность за свою жизнь и здоровье на себя. В случае аварийной ситуации водитель обязан принять все разумные меры к сохранению жизни пешехода, но имеет неподсудность в случае нарушения пешеходами правил дорожного движения.
Предыстория - вчера я поздно возвращался домой, и буквально в двухстах метрах от дома наблюдал следующую картину - не освещаемая улица. Темно, ночь. Крутой поворот на гребне холма, за гребнем, по проезжей части с моей стороны, СПРАВА от припаркованных машин (у нас левостороннее движение), идет некая девица с коляской. В коляске - младенец (уже потом углядел). Видимость их нулевая с начала дороги, я углядел лишь когда перевалил через холмик. Средняя скорость машин входящих в поворот - 50кмч (городская зона). Тротуар - свободен. Я в итоге завернул в магазин купить пожевать к ужину, девица зашла следом. Поскольку я был усталый и злой - не выдержал и тактично сказал что с коляской ходить по дороге ходить не след когда есть тротуары. Хз восприняла ли меня девица, но надеюсь что больше она рисковать собой и дитем не будет.

excited
cheerful
relaxedПрочел не так давно Хайнлайна Starship Troopers, и решил теперь выложить наиболее понравившиеся мне цитаты по социальному устройству:
"...Service men are not brighter than civilians. In many cases civilians are much more intelligent. ... let the intelligent elite run things and you'll have utopia. It fell flat on its foolish face of course. Because the pursuit of science, despite its social benefits, is itself not a social virtue; its practitioners can be men so self-centered as to be lacking in social responsibility...."
"You and I are not permitted to vote as long as we remain in the Service, nor is it verifiable that military discipline makes a man self-disciplined once he is out; the crime rate of veterans is much like that of civilians. And you have forgotten that in peacetime most veterans come from non-combatant auxiliary services and have not been subjected to the full rigors of military discipline; they have merely been harried, overworked, and endangered—yet their votes count."
"Nevertheless, it is instructive to observe the details. Throughout history men have labored to place the sovereign franchise in hands that would guard it well and use it wisely, for the benefit of all. An early attempt was absolute monarchy, passionately defended as the ‘divine right of kings.'
"Sometimes attempts were made to select a wise monarch, rather man leave it up to God, as when the Swedes picked a Frenchman, General Bernadotte, to rule them. The objection to this is that the supply of Bernadottes is limited."
"Historic examples range from absolute monarch to utter anarch; mankind has tried thousands of ways and many more have been proposed, some weird in the extreme such as the antlike communism urged by Plato under the misleading title The Republic. But the intent has always been moralistic: to provide stable and benevolent government."
"All systems seek to achieve this by limiting franchise to those who are believed to have the wisdom to use it justly. I repeat ‘all systems'; even the so-called ‘unlimited democracies' excluded from franchise not less than one quarter of their populations by age, birth, poll tax, criminal record, or other."
Major Reid smiled cynically. "I have never been able to see how a thirty-year old moron can vote more wisely than a fifteen-year-old genius... but that was the age of the ‘divine right of the common man.' Never mind, they paid for their folly."
"The sovereign franchise has been bestowed by all sorts of rules— place of birth, family of birth, race, sex, property, education, age, religion, et cetera. All these systems worked and none of them well. All were regarded as tyrannical by many, all eventually collapsed or were overthrown."
..."The ruling nobles of many another system were a small group fully aware of their grave power. Furthermore, our franchised citizens are not everywhere a small fraction; you know or should know that the percentage of citizens among adults ranges from over eighty per cent on Iskander to less than three per cent in some Terran nations yet government is much the same everywhere. Nor are the voters picked men; they bring no special wisdom, talent, or training to their sovereign tasks. So what difference is there between our voters and wielders of franchise in the past? We have had enough guesses;
I'll state the obvious: Under our system every voter and officeholder is a man who has demonstrated through voluntary and difficult service that he places the welfare of the group ahead of personal advantage."
"And that is the one practical difference."
"He may fail in wisdom, he may lapse in civic virtue. But his average performance is enormously better than that of any other class of rulers in history."
..."Bear in mind that this is science, not wishful thinking; the universe is what it is, not what we want it to be. To vote is to wield authority; it is the supreme authority from which all other authority derives—such as mine to make your lives miserable once a day. Force, if you will! -- the franchise is force, naked and raw, the Power of the Rods and the Ax. Whether it is exerted by ten men or by ten billion, political authority is force."
"But this universe consists of paired dualities. What is the converse of authority? Mr. Rico."
He had picked one I could answer. "Responsibility, sir."
"Applause. Both for practical reasons and for mathematically verifiable moral reasons, authority and responsibility must be equal -- else a balancing takes place as surely as current ‘flows between points of unequal potential. To permit irresponsible authority is to sow disaster; to hold a man responsible for anything he does not control is to behave with blind idiocy. The unlimited democracies were unstable because their citizens were not responsible for the fashion in which they exerted their sovereign authority... other than through the tragic logic of history. The unique ‘poll tax' that we must pay was unheard of. No attempt was made to determine whether a voter was socially responsible to the extent of his literally unlimited authority. If he voted the impossible, the disastrous possible happened instead -- and responsibility was then forced on him willy-nilly and destroyed both him and his foundationless temple."
"Superficially, our system is only slightly different; we have democracy unlimited by race, color, creed, birth, wealth, sex, or conviction, and anyone may win sovereign power by a usually short and not too arduous term of service -- nothing more than a light workout to our cave-man ancestors. But that slight difference is one between a system that works, since it is constructed to match the facts, and one that is inherently unstable. Since sovereign franchise is the ultimate in human authority, we insure that all who wield it accept the ultimate in social responsibility -- we require each person who wishes to exert control over the state to wager his own life -- and lose it, if need be -- to save the life of the state. The maximum responsibility a human can accept is thus equated to the ultimate authority a human can exert. Yin and yang, perfect and equal."
"Uh, sir, why not go—well, go the limit? Require everyone to serve and let everybody vote?"
"Young man, can you restore my eyesight?"
"Sir? Why, no, sir!"
"You would find it much easier than to instill moral virtue—social responsibility -- into a person who doesn't have it, doesn't want it, and resents having the burden thrust on him. This is why we make it so hard to enroll, so easy to resign. Social responsibility above the level of family, or at most of tribe, requires imagination -- devotion, loyalty, all the higher virtues -- which a man must develop himself; if he has them forced down him, he will vomit them out. Conscript armies have been tried in the past. Look up in the library the psychiatric report on brainwashed prisoners in the so called ‘Korean War,' circa 1950 -- the Mayer Report. Bring an analysis to class." He touched his watch. "Dismissed."
И на тему войн:
Briefly, thus: All wars arise from population pressure. (Yes, even the Crusades, though you have to dig into trade routes and birth rate and several other things to prove it.) Morals—all correct moral rules derive from the instinct to survive; moral behavior is survival behavior above the individual level—as in a father who dies to save his children. But since population pressure results from the process of surviving through others, then war, because it results from population pressure, derives from the same inherited instinct which produces all moral rules suitable for human beings.
Check of proof: Is it possible to abolish war by relieving population pressure (and thus do away with the all-too evident evils of war) through constructing a moral code under which population is limited to resources?
Without debating the usefulness or morality of planned parenthood, it may be verified by observation that any breed which stops its own increase gets crowded out by breeds which expand. Some human populations did so, in Terran history, and other breeds moved in and engulfed them.
Nevertheless, let's assume that the human race manages to balance birth and death, just right to fit its own planets, and thereby becomes peaceful. What happens?
Soon (about next Wednesday) the Bugs move in, kill off this breed which "ain'ta gonna study war no more" and the universe forgets us. Which still may happen. Either we spread and wipe out the Bugs, or they spread and wipe us out -- because both races are tough and smart and want the same real estate.
Do you know how fast population pressure could cause us to fill the entire universe shoulder to shoulder? The answer will astound you, just the flicker of an eye in terms of the age of our race.

confused"Долго искал Шрёдингер нагадившего котёнка.
А котёнок забился в коробку и сидел там ни жив ни мёртв"
(С)А.Л.
Двухминутное видео показал канал CBS News. На этих кадрах видно, как некий крупный объект поднимается на большую высоту — за ним тянется шлейф дыма.
</lj-embed>
Американские СМИ, со ссылкой на независимых экспертов, утверждают, что точка запуска находилась в Тихом океане в 35 километрах к западу от Лос-Анджелеса. Пентагон отрицает свою причастность к инциденту. Ничего не знают о запущенном объекте ни гражданские авиаслужбы, ни органзиции, наблюдающие за космическим пространством. Единственную версию высказал экс-заместитель министра обороны США Роберт Эллсуорт: по его мнению, это могла быть межконтинентальная ракета, запущенная с подлодки.
Вообще странно. То у американцев пропадает контроль над ядерными шахтами на час, то бомбардировщик два часа летит с атомным боеприпасом под крылом без ведома минобороны США... То ракета стартует, а норад - ни сном ни духом не ведает. Что то очень странное творится в подлунном мире.You are viewing
iced_beard's journal