• Как реализовать загрузку БД с сервера в мобильном приложении?

    ilyubayev
    @ilyubayev Автор вопроса
    Иван: скажем так, приложение - справочник по городам(поэтому идет аналогия с 2GIS). Т.е. изначально не нужно пользователю иметь всю БД -> он качает только нужный ему город и все.
  • Можно ли сделать Navigation Drawer без AppCompat?

    ilyubayev
    @ilyubayev Автор вопроса
    Не прошло и года как я могу таки утвердить сея вопрос как ответ.
    На тот день это, наверно, единственный путь для использования Navigatio Drawer без support-библиотеки. Но далеко не самый легкий. Самый логичный ответ на тот момент → все-таки использовать библиотеку. Принять и использовать.
    На Google IO15 анонсировали Design Library с "материальными" navigation drawer и tabs - всем счастья!
  • Как преобразовать кодировку строки в стандартную?

    ilyubayev
    @ilyubayev Автор вопроса
    Спасибо! Вы натолкнули меня на правильный путь решения!
  • Как преобразовать кодировку строки в стандартную?

    ilyubayev
    @ilyubayev Автор вопроса
    При вызове Charset.defaultCharset() выдает windows-1251
  • Как преобразовать кодировку строки в стандартную?

    ilyubayev
    @ilyubayev Автор вопроса
    one pavel:
    String regex1 = "виды";
    System.out.println(Arrays.toString(regex1.getBytes()));
    Дает вот что: [63, 63, 63, 63]
  • Как изменить код модуля(библиотеки) в Android?

    ilyubayev
    @ilyubayev Автор вопроса
    anyd3v: В Module Settings добавляю модуль как Existing Project, после в build.gradle в dependencies добавляю строку:
    compile 'br.com.liveo:navigationdrawer-material:1.0.3'
    Мой settings.gradle:
    include ':app', ':tabs', ':materialdrawer'(вот эта библиотека)
  • Как изменить код модуля(библиотеки) в Android?

    ilyubayev
    @ilyubayev Автор вопроса
    У меня gradle! Можно ли как-то вруную запустить компиляцию?
  • Как обратиться к тегу в дереве XML с помощью SimpleXML в PHP?

    ilyubayev
    @ilyubayev Автор вопроса
    Круто, получилось! Спасибо!
    Будущим поколениям: путь таков - $w->body->tbl->tr->tc->p->r->t;
  • Как обратиться к тегу в дереве XML с помощью SimpleXML в PHP?

    ilyubayev
    @ilyubayev Автор вопроса
    Дамп
    object(SimpleXMLElement)#2 (1) { ["body"]=> object(SimpleXMLElement)#3 (3) { ["tbl"]=> object(SimpleXMLElement)#4 (3) { ["tblPr"]=> object(SimpleXMLElement)#8 (3) { ["tblStyle"]=> object(SimpleXMLElement)#12 (1) { ["@attributes"]=> array(1) { ["val"]=> string(2) "a3" } } ["tblW"]=> object(SimpleXMLElement)#13 (1) { ["@attributes"]=> array(2) { ["w"]=> string(1) "0" ["type"]=> string(4) "auto" } } ["tblLook"]=> object(SimpleXMLElement)#14 (1) { ["@attributes"]=> array(7) { ["val"]=> string(4) "04A0" ["firstRow"]=> string(1) "1" ["lastRow"]=> string(1) "0" ["firstColumn"]=> string(1) "1" ["lastColumn"]=> string(1) "0" ["noHBand"]=> string(1) "0" ["noVBand"]=> string(1) "1" } } } ["tblGrid"]=> object(SimpleXMLElement)#9 (1) { ["gridCol"]=> array(6) { [0]=> object(SimpleXMLElement)#14 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1595" } } [1]=> object(SimpleXMLElement)#13 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1595" } } [2]=> object(SimpleXMLElement)#12 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1595" } } [3]=> object(SimpleXMLElement)#15 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1595" } } [4]=> object(SimpleXMLElement)#16 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1595" } } [5]=> object(SimpleXMLElement)#17 (1) { ["@attributes"]=> array(1) { ["w"]=> string(4) "1596" } } } } ["tr"]=> array(2) { [0]=> object(SimpleXMLElement)#10 (2) { ["@attributes"]=> array(2) { ["rsidR"]=> string(8) "00EE7346" ["rsidTr"]=> string(8) "00EE7346" } ["tc"]=> array(6) { [0]=> object(SimpleXMLElement)#17 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(25) "Вопрос номер 1" } } } [1]=> object(SimpleXMLElement)#16 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(48) "Это ответ на вопрос номер 1" } } } [2]=> object(SimpleXMLElement)#15 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(61) "Это второй ответ на вопрос номер 1" } } } [3]=> object(SimpleXMLElement)#12 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(61) "Это третий ответ на вопрос номер 1" } } } [4]=> object(SimpleXMLElement)#13 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(68) "Это четвертый ответ на вопрос номер 1	" } } } [5]=> object(SimpleXMLElement)#14 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1596" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(59) "Это пятый ответ на вопрос номер 1" } } } } } [1]=> object(SimpleXMLElement)#11 (2) { ["@attributes"]=> array(2) { ["rsidR"]=> string(8) "00EE7346" ["rsidTr"]=> string(8) "00EE7346" } ["tc"]=> array(6) { [0]=> object(SimpleXMLElement)#14 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (2) { ["@attributes"]=> array(4) { ["rsidR"]=> string(8) "00EE7346" ["rsidRPr"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(25) "Вопрос номер 1" } } } [1]=> object(SimpleXMLElement)#13 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(61) "Это первый ответ на вопрос номер 2" } } } [2]=> object(SimpleXMLElement)#12 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#20 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (4) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#20 (1) { ["t"]=> string(61) "Это второй ответ на вопрос номер 2" } ["bookmarkStart"]=> object(SimpleXMLElement)#21 (1) { ["@attributes"]=> array(2) { ["id"]=> string(1) "0" ["name"]=> string(7) "_GoBack" } } ["bookmarkEnd"]=> object(SimpleXMLElement)#22 (1) { ["@attributes"]=> array(1) { ["id"]=> string(1) "0" } } } } [3]=> object(SimpleXMLElement)#15 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#22 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#22 (1) { ["t"]=> string(61) "Это третий ответ на вопрос номер 2" } } } [4]=> object(SimpleXMLElement)#16 (2) { ["tcPr"]=> object(SimpleXMLElement)#18 (1) { ["tcW"]=> object(SimpleXMLElement)#22 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1595" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#19 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#22 (1) { ["t"]=> string(67) "Это четвертый ответ на вопрос номер 2" } } } [5]=> object(SimpleXMLElement)#17 (2) { ["tcPr"]=> object(SimpleXMLElement)#19 (1) { ["tcW"]=> object(SimpleXMLElement)#22 (1) { ["@attributes"]=> array(2) { ["w"]=> string(4) "1596" ["type"]=> string(3) "dxa" } } } ["p"]=> object(SimpleXMLElement)#18 (2) { ["@attributes"]=> array(3) { ["rsidR"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "00EE7346" ["rsidP"]=> string(8) "00EE7346" } ["r"]=> object(SimpleXMLElement)#22 (1) { ["t"]=> string(59) "Это пятый ответ на вопрос номер 2" } } } } } } } ["p"]=> object(SimpleXMLElement)#6 (1) { ["@attributes"]=> array(4) { ["rsidR"]=> string(8) "000A6CF5" ["rsidRPr"]=> string(8) "00EE7346" ["rsidRDefault"]=> string(8) "000A6CF5" ["rsidP"]=> string(8) "00EE7346" } } ["sectPr"]=> object(SimpleXMLElement)#7 (5) { ["@attributes"]=> array(2) { ["rsidR"]=> string(8) "000A6CF5" ["rsidRPr"]=> string(8) "00EE7346" } ["pgSz"]=> object(SimpleXMLElement)#11 (1) { ["@attributes"]=> array(2) { ["w"]=> string(5) "11906" ["h"]=> string(5) "16838" } } ["pgMar"]=> object(SimpleXMLElement)#10 (1) { ["@attributes"]=> array(7) { ["top"]=> string(4) "1134" ["right"]=> string(3) "850" ["bottom"]=> string(4) "1134" ["left"]=> string(4) "1701" ["header"]=> string(3) "708" ["footer"]=> string(3) "708" ["gutter"]=> string(1) "0" } } ["cols"]=> object(SimpleXMLElement)#9 (1) { ["@attributes"]=> array(1) { ["space"]=> string(3) "708" } } ["docGrid"]=> object(SimpleXMLElement)#8 (1) { ["@attributes"]=> array(1) { ["linePitch"]=> string(3) "360" } } } } } SimpleXMLElement Object ( [body] => SimpleXMLElement Object ( [tbl] => SimpleXMLElement Object ( [tblPr] => SimpleXMLElement Object ( [tblStyle] => SimpleXMLElement Object ( [@attributes] => Array ( [val] => a3 ) ) [tblW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 0 [type] => auto ) ) [tblLook] => SimpleXMLElement Object ( [@attributes] => Array ( [val] => 04A0 [firstRow] => 1 [lastRow] => 0 [firstColumn] => 1 [lastColumn] => 0 [noHBand] => 0 [noVBand] => 1 ) ) ) [tblGrid] => SimpleXMLElement Object ( [gridCol] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 ) ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 ) ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 ) ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 ) ) [5] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1596 ) ) ) ) [tr] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidTr] => 00EE7346 ) [tc] => Array ( [0] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Вопрос номер 1 ) ) ) [1] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это ответ на вопрос номер 1 ) ) ) [2] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это второй ответ на вопрос номер 1 ) ) ) [3] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это третий ответ на вопрос номер 1 ) ) ) [4] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это четвертый ответ на вопрос номер 1	 ) ) ) [5] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1596 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это пятый ответ на вопрос номер 1 ) ) ) ) ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidTr] => 00EE7346 ) [tc] => Array ( [0] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRPr] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Вопрос номер 1 ) ) ) [1] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это первый ответ на вопрос номер 2 ) ) ) [2] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это второй ответ на вопрос номер 2 ) [bookmarkStart] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 0 [name] => _GoBack ) ) [bookmarkEnd] => SimpleXMLElement Object ( [@attributes] => Array ( [id] => 0 ) ) ) ) [3] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это третий ответ на вопрос номер 2 ) ) ) [4] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1595 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это четвертый ответ на вопрос номер 2 ) ) ) [5] => SimpleXMLElement Object ( [tcPr] => SimpleXMLElement Object ( [tcW] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 1596 [type] => dxa ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 00EE7346 [rsidRDefault] => 00EE7346 [rsidP] => 00EE7346 ) [r] => SimpleXMLElement Object ( [t] => Это пятый ответ на вопрос номер 2 ) ) ) ) ) ) ) [p] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 000A6CF5 [rsidRPr] => 00EE7346 [rsidRDefault] => 000A6CF5 [rsidP] => 00EE7346 ) ) [sectPr] => SimpleXMLElement Object ( [@attributes] => Array ( [rsidR] => 000A6CF5 [rsidRPr] => 00EE7346 ) [pgSz] => SimpleXMLElement Object ( [@attributes] => Array ( [w] => 11906 [h] => 16838 ) ) [pgMar] => SimpleXMLElement Object ( [@attributes] => Array ( [top] => 1134 [right] => 850 [bottom] => 1134 [left] => 1701 [header] => 708 [footer] => 708 [gutter] => 0 ) ) [cols] => SimpleXMLElement Object ( [@attributes] => Array ( [space] => 708 ) ) [docGrid] => SimpleXMLElement Object ( [@attributes] => Array ( [linePitch] => 360 ) ) ) ) )

  • Как подключить JQuery плагин turn.js к Joomla 2.5?

    ilyubayev
    @ilyubayev Автор вопроса
    Подключил turn.js по этой инструкции(использую шаблон этой студии). Прописал кастомные css и вставил hmtl код в материал - не работает. Нужно ли вставлять куда нибудь javascript код из инструкции?