Viestialustana keskustelupalstat

Can’t connect Nextcloud Android app with the server

20. heinäkuuta 2016 klo 19.20
Sijainti: Keskustelupalstat: Nextcloud
Avainsanat: Android, F-Droid, Nexus, Samsung

I just migrated from Owncloud 8.2 to Nextcloud 9.0.52. Everything else (i.e. the web interface, desktop client) seems to work just fine, but I can’t get the Nextcloud Android app to connect with the server. I can enter the URL (no errors), my login and password, but the ”Connect” button feels totally unresponsive, it does nothing at all no matter how much I tap it. No error messages are given by the app nor is there anything correlating with the attempts in server logs.

This happens on both my phone (Nexus 5X, Android M) and tablet (Samsung Tab 4, Android L). I also tried the Beta app from F-Droid and the issue is present there too. It’s also present in both my WLAN and when using a direct 3G connection on the phone (so I don’t think the WLAN router’s firewall is the cause either).

The Owncloud app on the same devices still works with the server, although I haven’t tried logging out and re-connecting it.

The server is on shared hosting where I have shell access.

Any suggestions?

Vastaa viestiin sen kontekstissa (Nextcloud)

All right, I’ll have to stick with the shortcode approach

26. tammikuuta 2016 klo 9.21
Sijainti: Keskustelupalstat: WordPress Codex
Avainsanat: WordPress

All right, thanks for the response. As I said, the shortcode approach works just fine so I’ll have to stick with that, and create my own custom post type if/when necessary.

Vastaa viestiin sen kontekstissa (WordPress Codex)

Only shortcode, no gallery posts?

24. tammikuuta 2016 klo 16.56
Sijainti: Keskustelupalstat: WordPress Codex
Avainsanat: WordPress

The description page clearly says the plugin features a ”Gallery custom post type”, but for the life of me I cannot figure out how to publish or even preview those posts. I can add galleries and use the short link on other post types, but the editor for galleries has no ”preview” functionality and there’s no way to view gallery posts on the front end on their own. I’d expect to be able to view the galleries at /(gallery_post_type_slug)/(gallery_post_slug).

Looking at the custom post type code (includes/class-posttypes.php), the ’public’ and ’rewrite’ args to register_post_type() have been set to false, which according to Codex documentation causes what I’m seeing. The args variable has a filter so I could override it; does this imply that I’m intended to add a filter to have the galleries work as a viewable post type and not just something used behind the scenes by the plugin?

Vastaa viestiin sen kontekstissa (WordPress Codex)

My first quick implementation of the ”full page as key” idea

4. lokakuuta 2015 klo 10.46
Sijainti: Keskustelupalstat: Library of Babel

Here’s my first quick implementation of the ”full page as key” idea:

Save page as key:

(function () {
    localStorage.setItem('libraryOfBabelKey', document.getElementById('textblock').textContent);
}());

Decrypt using previously saved key:

(function () {
    var alphabet, c, i, m, text, key;

    alphabet = 'abcdefghijklmnopqrstuvwxyz,. ';
    key = localStorage.getItem('libraryOfBabelKey');
    if (!key) {
        alert('No key has been saved.');
        return;
    }
    text = {
        original: document.getElementById('textblock').textContent,
        decoded: ''
    };

    for (i = 0; i < text.original.length; i += 1) {
        c = text.original.substr(i, 1);
        if (c === '\n') {
            text.decoded += c;
        } else {
            m = alphabet.indexOf(key.substr(i, 1));
            text.decoded += alphabet.substr(((alphabet.indexOf(c) - m) % alphabet.length), 1);
        }
    }
    document.getElementById('textblock').textContent = text.decoded;
}());

Vastaa viestiin sen kontekstissa (Library of Babel)

Already noticed the first mistake

4. lokakuuta 2015 klo 9.03
Sijainti: Keskustelupalstat: Library of Babel

You’re right Jonathan, using one whole page to decipher another would also be interesting. It’d take a bit more code (temporary storage is needed for keeping the previous page) but it still shouldn’t be too difficult. The pages could then be considered as having been encrypted with a one-time pad, which is unbreakable and thus a cool idea in itself.

I already noticed the first mistake in my code above: I forgot to strip the page number from the title prior to use, but it should be, as numbers aren’t part of the alphabet. Here’s a fixed version that takes out the page number and whitespace preceding it:

(function () {
    var alphabet, c, i, m, text, title;

    alphabet = 'abcdefghijklmnopqrstuvwxyz,. ';
    title = document.title.replace(new RegExp('[^abcdefghijklmnopqrstuvwxyz,\. ]', 'g'), '');
    title = title.substr(0, title.length - 1);
    text = {
        original: document.getElementById('textblock').textContent,
        decoded: ''
    };

    for (i = 0; i < text.original.length; i += 1) {
        c = text.original.substr(i, 1);
        if (c === '\n') {
            text.decoded += c;
        } else {
            m = alphabet.indexOf(title.substr(i % title.length, 1)); /* add "+ 1" if you want A = 1, B = 2,... instead of A = 0, B = 1,... */
            text.decoded += alphabet.substr(((alphabet.indexOf(c) - m) % alphabet.length), 1);
        }
    }
    document.getElementById('textblock').textContent = text.decoded;
}());

Vastaa viestiin sen kontekstissa (Library of Babel)

Vigenère cipher

3. lokakuuta 2015 klo 15.09
Sijainti: Keskustelupalstat: Library of Babel

Here’s a piece of JavaScript I made that uses the book title as a Vigenère cipher keyword to decrypt the page content. You can paste it directly into the browser’s URL bar on a library page to decrypt. (I made it in a hurry so it comes with no warranty!)

javascript:(function () {
    var alphabet, c, i, m, text, title;

    alphabet = 'abcdefghijklmnopqrstuvwxyz,. ';
    title = document.title;
    text = {
        original: document.getElementById('textblock').textContent,
        decoded: ''
    };

    for (i = 0; i < text.original.length; i += 1) {
        c = text.original.substr(i, 1);
        if (c === '\n') {
            text.decoded += c;
        } else {
            m = alphabet.indexOf(title.substr(i % title.length, 1)); /* add "+ 1" if you want A = 1, B = 2,... instead of A = 0, B = 1,... */
            text.decoded += alphabet.substr(((alphabet.indexOf(c) - m) % alphabet.length), 1);
        }
    }
    document.getElementById('textblock').textContent = text.decoded;
}());

Vastaa viestiin sen kontekstissa (Library of Babel)

You could argue the code already is open

26. syyskuuta 2015 klo 18.53
Sijainti: Keskustelupalstat: Library of Babel

You could argue the code already is open. After all, you can just go to the library and get it, provided you know where to look. ;-)

Vastaa viestiin sen kontekstissa (Library of Babel)

All right, thanks for the workaround Mijzelf!

8. elokuuta 2015 klo 13.30
Sijainti: Keskustelupalstat: General NAS-Central Forums
Avainsanat: Zyxel

All right, thanks for the workaround Mijzelf!

Vastaa viestiin sen kontekstissa (General NAS-Central Forums)

Wrong URL for the package listing?

8. elokuuta 2015 klo 11.49
Sijainti: Keskustelupalstat: General NAS-Central Forums
Avainsanat: Zyxel

I was having trouble updating the packages list and noticed from zypkg.log that it’s trying to download ftp://ftp2.zyxel.com/NAS540/zypkg/5.02/ZYPKG_INFO.tgz, whereas the actual file on the server (from a few days ago) is ftp://ftp2.zyxel.com/NAS540/zypkg/5.02/ZYPKG_INFO.TGZ (notice the all-caps .TGZ extension). Can anyone corroborate this is a server-end problem and not just something I’ve managed to break on my end?

2015-08-07 06:00:05 [ipkg][][29288]: [ipkg_op][676] ******** ipkg start as " /usr/bin/ipkg-cl -f /etc/zyxel/pkg_conf/zypkg_conf/zy-pkg.conf -t /i-data/.system/zy-pkgs/tmp download DefaultWebSite ZYPKG_INFO.tgz "
2015-08-07 06:00:05 [ipkg][download][29288]: [ipkg_op][699] cmd_name: download, argv[6]: DefaultWebSite
2015-08-07 06:00:05 [ipkg][download][29288]: [zypkg_set_web_site][2110] ---> using "/etc/package_src_url" (for white box version)
2015-08-07 06:00:05 [ipkg][download][29288]: [zypkg_set_web_site][2124] web site: "ftp://ftp2.zyxel.com/NAS540/zypkg/5.02"
2015-08-07 06:00:05 [ipkg][download][29288]: [ipkg_op][749] @@@ strURL: DefaultWebSite @@@
2015-08-07 06:00:05 [ipkg][download][29288]: start [zypkg_download] with [ftp://ftp2.zyxel.com/NAS540/zypkg/5.02]-[ZYPKG_INFO.tgz]-[/tmp/ZYPKG_INFO.tgz]-[zypkglist]
2015-08-07 06:00:05 [ipkg][download][29288]: [zypkg_download][366] resumeFrom: "0".
2015-08-07 06:00:05 [ipkg][download][29288]: [zypkg_download] strDownloadFile: ftp://ftp2.zyxel.com/NAS540/zypkg/5.02/ZYPKG_INFO.tgz
2015-08-07 06:00:05 [ipkg][download][29288]: [zypkg_download] Start to download zypkglist
2015-08-07 08:00:06 [7]: [zysh_zypkgs_updatelist_showProgress][1415] "/tmp/zypkglist_download.ongoing" exists now.
2015-08-07 08:00:07 [7]: [zysh_zypkgs_updatelist_showProgress][1415] "/tmp/zypkglist_download.ongoing" exists now.
2015-08-07 08:00:08 [7]: [zysh_zypkgs_updatelist_showProgress][1415] "/tmp/zypkglist_download.ongoing" exists now.
2015-08-07 06:00:09 [ipkg][download][29288]: [zypkg_download] ********* curl_result: 78
2015-08-07 06:00:09 [ipkg][download][29288]: [zypkg_download] ********* [??] curl_result: 78
2015-08-07 06:00:09 [ipkg][download][29288]: [zypkg_download] Download zypkglist TIMEOUT
2015-08-07 06:00:09 [ipkg][download][29288]: [ipkg_op][785] download result: 78
2015-08-07 08:00:09 [7]: [zysh_zypkgs_updatelist_showProgress][1415] "/tmp/zypkglist_download.ongoing" exists now.

Vastaa viestiin sen kontekstissa (General NAS-Central Forums)

Versiossa 1.0.9.7 on muutosluettelon mukaan nyt tuki Saunalahden VDSL:lle

4. heinäkuuta 2015 klo 12.29
Sijainti: Keskustelupalstat: Asus
Avainsanat: Elisa, Saunalahti


Asustelija kirjoitti:
Asukselle pitkä miinus siitä, ettei manuaalissa neuvota mitään modeemin säätämisestä. Suomalaisista operaattoreistakin löytyy vain Sonera.


Eilen julkaistussa firmisversiossa 1.0.9.7 on muutosluettelon mukaan nyt tuki Saunalahden VDSL:lle:

”- VDSL WAN (PTM) QIS manual setting list updated. […] Add Finland ISP, Saunalahti”

Itse asensin tuon 1.0.9.7:n äsken ja tuntuu toimivan kuten tähänkin asti, joskaan en käynyt asetusvelhoa uudelleen läpi noiden operaattorikohtaisten valmisasetusten saamiseksi, vaan käytän ennestään toimineilla, käsin tekemilläni asetuksilla.

Vastaa viestiin sen kontekstissa (Asus)

« Uudempia - Vanhempia »