Home
thenata's Friends
 
[Most Recent Entries] [Calendar View] [Friends View]

Below are the most recent 25 friends' journal entries.

    [ << Previous 25 ]
    Friday, November 13th, 2009
    ru_java
    [ vgavrilov ]
    2:50p
    Никому java-человек не нужен на работу?
    Неторопливо ищется новое место работы в Питере. Java EE и смежные области, желаемая компенсация - от 80 килорублей на руки, желаемая позиция: senior developer / team lead.

    Детали на английском под катом )

    контакты: gavrilov.victor at gmail.com, icq 272172356, телефон +7-906-253-восемьдесят пять-27
    ru_java
    [ nestor_by ]
    8:40a
    Есть xml, нужно без преобразования его в объект сохранить в БД. Есть ли уже существующие опенсорсные решения.

    Т е суть та же что и хибернейта например, будет конфиг какому элементу xml принадлежит какой столбец в БД, но только без объектного представления. Все потому что решение должно быть максимально гибким и любые переключения или изменение БД происходили так же быстро.

    ЗЫ СПасибо за ваши ответы и внимание.


    UPD:

    Спасибо, выбрал путь хибернейта, тем более что на проекте он уже используется для других вещей, помогла статья
    http://docs.jboss.org/hibernate/core/3.3/reference/en/html/xml.html
    понятно и привычно.
    ru_java
    [ 23derevo ]
    11:02a
    Апгрейд рабочего компа
    Добрый день, уважаемые.

    Работаю я с JavaEE под Eclipse и Idea. На компе постоянно работает тестовый сервер приложений (Glassfish или JBoss etc.), если проект маленький. Если проект большой - деплою на удалённую мошную машину. С серверами СУБД та же ситуация.

    В данный момент сижу на Pentium 4 с гигом DDR. Хочу новую машину. Это будет комп на любой приличной мамке со встренным видео, на борту будет 4 гига оперативы.

    Единственное, что меня интересует - какой процессор ставить?
    1. Будет ли существенный прирост производительности при работе с Eclipse и IDEA на процессоре с двумя ядрами? С четырьмя? Или всё равно всё упрётся в винчестер или другие компоненты?

    2. Как на увеличение количество ядер реагируют сервера приложений? Подозреваю, что тут как раз реагировать они должны сильно, ибо в их конструкцию наверняка заложена масштабируемость по кол-ву ядер, но не уверен.

    Прошу помочь прежде всего тех, у кого был реальный опыт работы с разными машинками. Ибо теориями на тему производительности гугл полон.

    Заранее благодарю за помощь!
    Thursday, November 12th, 2009
    news
    [ theljstaff ]
    1:53p
    LiveJournal Major Notes: Notes, Tweaks, Bug Kills, LJ_Cares!

    Notes augmented

    We've enhanced and de-bugged Notes. If you haven't tried it yet, now's the time! You can create a private note when you ban multiple users. You can also delete multiple notes at once. Lastly, paid users have the option to add a note (visible only to you) whenever you add or remove a friend (guaranteed to avoid embarrassing social mishaps). If you don't currently have a paid account, you can upgrade now! It only takes a few minutes and costs less than a bad shopping mall haircut (plus, it's way more fashionable)!

    Product tweaks and bug kill

    1. In another effort to zap spam, comments containing links from domains LiveJournal deems untrustworthy are now automatically screened
    2. If you sign up to get notifications of the Writer's Block question of the day, you'll now see the daily question in the email notification, so you'll have a little extra time to ponder before you post. You can subscribe to Writers Block notifications here
    3. The issue causing random comments to vanish has been fixed!
    4. If you visit a LiveJournal page and get prompted to log in, you'll be returned to the same page after you sign in (Thanks, Dreamwidth)!
    5. If you don't edit the timestamp for an entry at all, the entry timestamp will indicate the time the entry was posted instead of the time the Update Journal page was loaded
    6. Comments with paddings/backgrounds render correctly within the comment box (and will no longer wrap outside the box and break frames/margins)

    New FCK fixes rich text editor!

    1. We've updated our RTE (Rich Text Editor) to FCKeditor version 2.6.5
    2. When switching from the RTE to HTML editor, links for syndicated feeds are no longer broken
    3. RTE now functions properly in Safari 4.0
    4. An extra line/space will not be auto-inserted whenever you switch from RTE to HTML editor
    5. The insert image link now works correctly in all browsers

    LiveJournal Cares

    We’re pleased to introduce you to [info]lj_cares, a new LiveJournal community dedicated to raising awareness and funds for U.S. charitable organizations that improve the health and well-being of people around the world. Each month, we’ll spotlight a nonprofit that is making a significant global impact through medical research, public outreach, and/or humanitarian social programs. Charities will be selected in accordance with the U.S. calendar of national health observances based on a high rating (of over 60%) on Charity Navigator and global scope of impact.

    In this, our inaugural month of November, we will celebrate national adoption month by offering a charitable virtual gift (priced at $2.99) to support Love Without Boundaries, an organization that saves the lives of orphans with life-threatening diseases and places them in loving homes around the world. LiveJournal will donate 100% of the proceeds from the sale of charitable vgifts (we'll cover the cost of credit card transaction fees). To learn more about Love Without Boundaries, please visit [info]lj_cares and read about how they helped save Baby Kang and the Rainbow Twins from fatal illnesses, who are now thriving in nurturing families. You can purchase your Love Without Boundaries gifts in the Virtual Gift shop.

    Papered in postcards

    A couple of weeks ago, we asked you to send in postcards to surround us with LiveJournal community. Thanks for coming through! We've received postcards all the way from Germany, Finland, and Canada and from all over the US, including Texas, Florida, Alaska, Montana, Wyoming, Indiana, Hawaii, and Oklahoma just to name just a handful. We're thrilled with our improved decor.

    Please keep the love coming for one more week by writing to Frank the Goat, Esq., c/o LiveJournal, Inc., 539 Bryant Street, Suite 210, San Francisco, CA 94107. Be sure to include your username, since we'll be drawing the names of ten random contributors next Thursday to win paid account credits!

    Photos of the week

    We have more dazzling images posted by talented LiveJournal photographers from around the world. We're hoping to span the entire globe, so please continue posting and tagging. Of course, you can also sit back and enjoy the view at [info]lj_photophile.

    You can see a sample of this week's gorgeous photos and check out spotlight communities and awesome user content after the jump!

    Read more... )

    Curtains

    We thank you, once again, for joining us. See you next week!

    ru_java
    [ dragdiller ]
    11:28p
    java tree -> javascript tree
    Нужно из дерева в java сгенерировать дерево в javascript, которое будет вставлено в html и показано пользователю через jetty. Какая библиотека мне это поможет сделать?

    В вебе и javascript не разбираюсь, а сделать это надо. Подобное задание разовое, поэтому начинать изучать javascript и все сопутствующие интересности глубоко и основательно не хочется, поэтому и ищу подобную библиотеку.

    UPD в дереве надо будет выбрать несколько узлов, а после выбора что нибудь ткнуть, чтобы результаты выбора ушли серверу
    ru_java
    [ awsd ]
    4:34p
    пишем вот такой код:

    Calendar c1 = new GregorianCalendar(1997, GregorianCalendar.JANUARY, 1, 0, 0, 0);
    System.out.println("c1 millis before timezone changed: " + c1.getTimeInMillis());
    c1.setTimeZone(TimeZone.getTimeZone("GMT"));
    System.out.println("c1 millis after timezone changed: " + c1.getTimeInMillis());

    Calendar c2 = new GregorianCalendar(1997, GregorianCalendar.JANUARY, 1, 0, 0, 0);
    c2.setTimeZone(TimeZone.getTimeZone("GMT"));
    System.out.println("c2 millis after timezone changed to GMT: " + c2.getTimeInMillis());
    c2.setTimeZone(TimeZone.getTimeZone("GMT+2"));
    System.out.println("c2 millis after timezone changed to GMT+2: " + c2.getTimeInMillis());

    и вот что получаем (система в зоне GMT+2):

    c1 millis before timezone changed: 852069600000
    c1 millis after timezone changed: 852069600000
    c2 millis after timezone changed to GMT: 852076800000
    c2 millis after timezone changed to GMT+2: 852076800000

    как это можно объяснить? почему изменяется значение getTimeInMillis() ??
    ru_java
    [ minolan ]
    2:03a
    мелкомягкая подлянка
    Клиентская машина закрыта от внешнего мира мелкомягкой проксёй, вестимо - с NTLM авторизацией. Открыт только 8080 порт на http.
    А нужно (ну очень бы хотелось!) сокетовое соединение. Единственное что удалось это URLConnection с заданными параметрами авторизации, через прокси-сокет.

    Есть ли способ пролезть сокетом в дырку?

    Wednesday, November 11th, 2009
    lj_maintenance
    [ dwell ]
    2:00p
    Network Maintenance: Saturday, November 14, 2009 at 04:00-06:00 UTC/GMT
    EDIT@08:16 UTC/GMT. Wow. That was ugly. I expected it to go for 30 minutes and have maybe 1 minute of broken connectivity. Instead it lasted over 4 hours and we had 10 minutes of downtime directly related to the load balancer upgrades and then another 5-10 minutes of downtime when our primary Pingback database server crashed and the secondary couldn't take over; which could have been indirectly caused by the network upgrade missing a self-VIP.

    Anyways, we're up, we're working, the load balancers are barely breaking a sweat right now and I need some food and a shot of whiskey. I don't even *like* whiskey!!

    Thanks [info]mhwest and [info]dnewhall for helping out!

    ---

    On Saturday the 14th at 4AM UTC/GMT we will be upgrading the operating system of our network load balancers to a newer version, one that will allow us to use both CPUs! Nifty, because multiprocessing is nice.

    Since we have 2 load balancers, the plan is to upgrade 1 at a time, and there really should be very little impact to our website. Hopefully you won't notice a thing and I'll get to go back to the hotel and watch some wonderful late night infomercials.

    We've got a lot of exciting projects coming up for 2010 and we're hoping that we'll be able to deliver them all to you, that you will find it useful/cool/lovely and then you will use the site even more. Behind-the-scenes work like this will give us the capacity to handle the anticipated traffic, so expect a few more maintenance windows especially in the beginning of next year as we've got some neat ideas to improve performance around here! We had the recent 30-45 minute outage yesterday due to one of our logging databases filling up disk space -- not so great design coupled with my human error in handling the initial problem -- and it looks like we're going to finally have some resources to eliminate stuff like that. I can't wait!

    As usual, I will be updating status.livejournal.org before and after, just in case you are not able to reach our main website during the work.
    ru_java
    [ svaor ]
    6:20p
    снижение производительности внутри транзакции
    В проекте используется hibernate (spring). Для организации транзакций использутся JDBCTransactionFactory, база - Oracle10. Кэш - ehcache.

    Есть необходимость в рамках одной транзакции выполнить множество (десять тысяч и возможно больше) однотипных итераций. После каждой итерации выполняется flush. При нагрузочном тестировании выявлено, что каждая следующая итерация выполняется все медленее и медленее. Получается строго линейная зависимость. И если сохранение сущности на 1й итерации выполняется, условно говоря, за 0,2с, то на 500й итерации - уже за 1,5с. Если закономерность сохранится, то на 10 000я итерация займет почти 30с... О_о
    Судя по статистике, все бОльшее время внутри итерации занимает не обработка информации, а именно работа с хибером/базой, причем именно внутри одной транзакции.

    Как можно объяснить такое явление и главное поправить ситуацию?

    зы. Разбить транзакцию на множество мелких пока очень проблематично с т.зр. реализуемой логики, т.к. может потребоваться сделать rollback на пол пути...

    UPD: Ребята, всем спасибо за идеи и помощь (кроме флудеров и пр. троллей, конечно :) ). Идея с возрастающим REDO-логом оракла не подтвердилась - проблема воспроизводится, например, и на HSQLDB.
    Скорость работы одной итерации перестает расти или при дроблении транзакции, или при выполнении Session.clear() после каждой итерации.
    Т.е., очевидно, падение скорости было обусловлено именно возрастанием количества объектов, накапливаемых в сессии хибера.
    ru_java
    [ brotherflame ]
    12:11p
    XML. DOM
    Нужно распарсить xml.

    <CLASS>
       <name>MyClassName</name>
    </CLASS>

    Получаю ноду  Element tag = (Element)lowNode;
    (tag -- содержит тег <name>)

    Как вытащить строку MyClassName?

    tag.getTextContent() выбрасывает исключение.
    ru_java
    [ vkorehov ]
    6:46a
    Маразм Java, активная стадия

    помирать так с музыкой.
    ru_java
    [ m_a_m_o_n ]
    9:21a
    Toolbar
    Как добавить в JToolbar кнопку закрытия документа как Office (в правом верхнем углу)
    и текстовое поле для поиска по справке - в правом нижнем,
    как в - http://explodingpixels.wordpress.com/2008/05/02/sexy-swing-app-the-unified-toolbar/.

    Java 1.6, OS Windows.
    Tuesday, November 10th, 2009
    ru_java
    [ drwx ]
    6:19p
    FreeMarker + SpringMVC
    Есть SpringMVC приложение. Шаблоны FreeMarker. Хочется разбить страницу на блоки и грузить в них вывод с разных контроллеров. Посоветуйте что нибудь хорошее ... Всем спасибо.
    Sunday, November 8th, 2009
    ru_java
    [ slonopotamus ]
    10:49p
    J2SE 5.0 End of Service Life Notice
    J2SE 5.0 reached its End of Service Life (EOSL) on November 3, 2009, which is the date of the final publicly available update of version 5.0 (J2SE 5.0 Update 22).
    Read more
    ru_java
    [ slonopotamus ]
    8:39p
    [ANN] AutoDAO
    Хочу представить на суд общественности небольшой проект моего изготовления под названием AutoDAO.

    AutoDAO является реализацией паттерна Generic Dao, о котором я впервые узнал из статьи Don't repeat the DAO!.
    Цель AutoDAO в уменьшении количества boilerplate кода при написании DAO-объектов.

    AutoDAO возникла во время работы над проектом pronto.ru, в котором успешно и с пользой используется по сей день.

    Основной функционал описан в документации.

    Лицензия: GPL-3

    Исходники: Git

    Релизы: maven-репозиторий, Sourceforge

    Вот. Интересно было бы услышать, кто что об этом думает.
    ru_java
    [ vromanov ]
    7:57p
    Средства анализа лога gc
    Какие есть НОРМАЛЬНЫЕ средства анализа лога сборщика мусора?
    Интересует анализ времен когда машина стоит..
    Read more... )
    Saturday, November 7th, 2009
    ru_java
    [ aleks_pingvin ]
    1:58p
    JNI canvas
    Добрый день уважаемое сообщество.

    Интересует такой вопрос:
    Работаю с jawt. Во всех примерах, что я видел получение hwnd и hdc происходит в переопределенном нативном методе paint, например как написано тут - http://java.sun.com/j2se/1.3/docs/guide/awt/AWT_Native_Interface.html

    Вопрос таков - я всегда должен переопределять метод paint для получения канвы или можно както это сделать по другому?
    В частности сейчас стоит задача у меня, назначить на Свинговый фрейм иконку в формате ico (по дефолту данный формат не поддерживается) ибо в Вин7 иконка выглядит жутка на панели задач...
    Friday, November 6th, 2009
    ru_java
    [ aefimov ]
    6:35p
    Структурный diff в VCS (пятничное)
    Сегодня вышла бета девятки. И в связи с этим хочется подкинуть JetBrains идею, о которой я уже мечтаю кучу времени. Ну и пофлеймить заодно.

    Итак, есть мнение (моё), что текстовый diff в VCS — анахронизм. Хочется, чтобы VCS оперировала не файловыми операциями и ограничивалась ими, а именно структурными данными. Ну то есть оперировала рефакторингами. Что это означает. Что для того, чтобы переименовать метод, вы должны явно сказать что-то вроде:
    
    idea-vcs --rename-method java://com.acme.A#myMethod java://com.acme.A#mySuperMethod
    


    Ну, вы уже поняли, что хочется IntelliJ IDEA Command Line Edition, но это если очень сильно упрощать. А если не упрощать, то хочется, чтобы эти все рефакторинги сохранялись в "стуктурном diff". И чтобы:
    
    idea-vcs di
    

    Возвращал:
    
    M java://com.acme.A#myMethod -> java://com.acme.A#mySuperMethod
    


    Такая VCS, которая оперирует не текстовыми правками, а именно рефакторингами. Что это дает? Это дает, в разы более легкий Code Review. Это дает в разы легкий репозиторий, так как дельты будут намного меньше, а следовательно, скорость работы с таким репозиторием будет зависеть не от сети и сервера, а от клиента, который будет применять рефакторинги на апдейте.

    Есть конечно и минусы. Например, я вообще не представляю, как можно просто сделать из Project Oriented редактора Command Line Tool. Ведь такая IDE не может работать с одним файлом, ей надо знать структуру проекта. Ну и применять дельты апдейтов клиентам надо за счёт прогона рефакторингов, кушая CPU. Хотя я надеюсь, что всё это обходится.

    Как думаете, такие VCS вообще имеют право на жизнь? Я думаю, что все к тому и идёт.
    ru_java
    [ duke_igthorn ]
    11:54a
    Обновление jsp cтраниц
    Пятничный в своем идиотизме вопрос. Есть томкат, в нем задеплоено вебовское приложение "рассыпухой" (в смысле - не war, а каталог). Используются всякие struts, tiles, и прочая хренотень. Человек меняет jsp. Казалось бы, томкат при первом же запросе должен подхватить и перекомпилировать jsp (таймстампы все в порядке) - а вот хренушки, даже не собирается этого делать. Установка в глобальном web.xml параметров jasper типа development true не помогает. Очевидно, remove/install вебовского приложения помогает, но как-то хочется жить попроще и побыстрее. Где я туплю?

    Upd. Нашел. Каталог хоть и рассыпухой, но в отсутствие правильного xml дескриптора томкатом копируется внутрь себя - после этого изменения в базовом каталоге ему, очевидно, пофиг. Спасибо и сорри за тупость.
    Tuesday, October 13th, 2009
    ru_cpp
    [ kmick ]
    12:44p
    Добрый день, товарищи. Есть такая вот нехитрая задача.

    Исходные данные: программа на C#, написанная мной под Windows, выполняющая некоторые вычисления.

    Задача: необходимо сделать так, чтобы программа работала под Mac OSX.


    Собственно, я готов к любым трудозатратам. Маковскую ось я свою машину я установить не могу, однако у меня есть товарищ с маковской осью, который может проверить её работоспособность. Я очень надеюсь, что я не оригинален в том, что у меня появилась такого рода задача и кто-то уже решал такие проблемы. Поскольку C# все-таки больше рассчитан на windows, я предполагал переписать программу на C++ и каким-то образом откомпилить её под мак. Но вот каким - ума не приложу.

    Посоветуйте плз какие-то варианты. Возможно, есть какие-то среды разработки, которые просто откомпилят под мак то, что я написал в них, находясь в винде. Возможно, можно как-то установить на мою машину линукс и из него компилить под мак. Нужны любые варианты, мнения.

    Заранее благодарен
    Thursday, October 15th, 2009
    ru_cpp
    [ mgor ]
    1:32p
    Немного теории
     Какой именно оператор сравнения вызывается в следующем случае:

    std::strung s = "123";
    if ("123" == s)
    {
    }

    Cоответсвенно, где почитать(в стандарт ISO не посылать) как определять какой именно оператор вызовется.
    Wednesday, October 21st, 2009
    ru_cpp
    [ trudoholic ]
    12:06a
    Озадачили
    Нужно работать с TCP/IP, но нельзя пользоваться socket.h
    Можно ли это делать, оставаясь в рамках C?
    Monday, October 26th, 2009
    ru_cpp
    [ _tsukasa ]
    4:08p
    Segmentation fault не по делу
    Многократно ранее компиленный код на С дает ошибку на пустом месте при попытке компиляции на новой системе. В чем может быть дело?

    Есть процедура:
    void strjoin(int numparts,char *dest, ...) {
    strcpy(dest,"111");
    (...)
    }

    и последняя строчка вызывает SEGV (gdb говорит #0 0x0000003424278810 in strcpy () from /lib64/libc.so.6). Вызывается это всё c dest типа сhar[255]. Ранее всё работало, тут попробовал на новой системе (64-бит) -- не хочет.

    Linux 2.6.18-128.7.1.el5 #1 SMP Mon Aug 24 08:21:56 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-44)
    Friday, November 6th, 2009
    ru_cpp
    [ il_agent ]
    12:18p
    Разделение строки на части.

      Вот за такое я С++ и недолюбливаю ((. Казалось бы, тривиальная вещь, но соответствующей стандартной функции я так и не нашёл, а бусты всякие подключать не хочется. 
      В общем, такой вот маленький велосипедик:

    vector<wstring> split(const wstring &s,const wstring &delimeter)
    {
        wstring str=s;
        int dl=delimeter.size();
        int pos;
       
    vector<wstring> result;

        while( (pos=str.find(delimeter)) >-1 )
        {
            result.push_back(str.substr(0,pos));
            str=str.substr(pos+dl);
        }
        result.push_back(str);

        return result;
    }


    Может кому  пригодится, но уверен, что можно и красивей. На поиск потратил минут 5 (больше, чем на код), так и не нашёл.

    Thursday, November 5th, 2009
    news
    [ theljstaff ]
    1:15p
    LiveJournal Major Notes: Spam counter-attack, RSS feeds again, CSI Deadly Intent contest


    The empire strikes back

    In recent weeks, we've taken huge steps towards blocking spam accounts on LiveJournal. In fact, we've suspended as many as 30,000 accounts in a single day! We've implemented several pre-emptive measures to prevent the creation of spam accounts, and we've honed our detection of suspicious content. Spam bots are a crafty lot, so we'll continue to refine our tactics and keep up the good fight to keep you safe from spam attacks on LiveJournal.

    RSS feeds again

    If you're addicted to [info]xkcd_rss, [info]icanhaschzbrgr, or other syndicated feeds, we're pleased to report that we've resolved the update error that was mucking up your RSS feeds. While content was being pulled correctly, it wasn't being posted to the feeds themselves. Late last week, we finally nailed down what we hope was the root problem, so content should post properly. We thank you for your patience.

    Wii have killer CSI Deadly Intent contests!



    [info]c_s_i

    If you're a gamer who loves CSI, have Wii got news for you! [info]c_s_i is sponsoring killer contests. Simply post a question to a member of the CSI crew. The winner will get a free copy of CSI: Deadly Intent for Nintendo Wii (with a retail value of $39.99) and get their question answered by a member of the CSI writing team! There's also a fantastic monthly contest. To enter, join [info]c_s_i, play the online version of CSI: Deadly Intent, and respond to a two-part query for a chance to win a Wii! Entries will be judged on composition and originality. Sorry, but you must be a U.S. resident and over 18 years old to participate. Check out the rules here.

    Enveloped in postcards

    Last week, we asked you to send in postcards to help us decorate our drab concrete walls. Here's a photo of the results so far! Thank you so much and please keep them coming! You can mail them to Frank the Goat, Esq., c/o LiveJournal, Inc., 539 Bryant Street, Suite 210, San Francisco, CA 94107. Be sure to include your username, since we'll be giving ten random users paid account credits.



    Photos of the week

    If you haven't visited our new LiveJournal photo community, you're in for an amazing visual trip. LiveJournal users from around the world will take you on a scenic journey to everywhere. Post your own pictures or kick back and enjoy at [info]lj_photophile. You can view some of this week's awesome photos after the jump. Please start tagging with geographic location, since we'd like to track all the places around the world represented in this community. Keep on commenting too!
    Read more... )
    [ << Previous 25 ]
About LiveJournal.com

Advertisement