Page 9 of 9 FirstFirst ... 456789
Results 161 to 180 of 180
Like Tree39Likes
  1.    #161  
    Busy, but yes, send it if you want
  2. #162  
    Quote Originally Posted by KURT B View Post
    Those are the ones, with the German flag in the back ground.
    The HD version I have is for the touchpad only I think.
    It references "Powered by Google", so maybe a link went bad.

    Kurt.
    From the looks of it, translator HD used an unofficial and unauthorized API for google translate. It makes the following call: http://translate.google.com/translat...st&sl=nl&tl=en

    Unfortunately it seems that Google has (finally) closed down this API. Probably to enforce the official API of which no free version exists, and a key is required. So my guess is that a simple and free fix unlikely. It might be possible to extract some information from e.g. the official google.translate add-on for chrome (as it is also written in javascript), but I don't know how simple that task is (even though it is, incidentally, similar to how the original unofficial API was found).
  3. #163  
    actually...

    https://github.com/andy-portmen/Simp.../lib/common.js

    there's this project that apparently is still working... maybe can be used to fix ?
    ( https://addons.mozilla.org/en-US/fir...le-translator/ )
  4.    #164  
    Well, I installed it and can confirm it was unresponsive to my first test. I'll add it to the list.

    I note my alternative suggestion translates words only (and only German / English), not phrases or even websites.

    The web browser can be use for this...

    But the post above suggests the possibility of a solution.
  5. #165  
    We might have to start a dedicated thread for this, because I don't think this is the ideal place (and I remember how many posts it took us to fix accuweather).


    Quote Originally Posted by mazzinia View Post
    actually...

    https://github.com/andy-portmen/Simp.../lib/common.js

    there's this project that apparently is still working... maybe can be used to fix ?
    ( https://addons.mozilla.org/en-US/fir...le-translator/ )
    I did some testing on this add-on, and the good thing is: it seems to use (a variation of) the same API as the webOS app did. There are some major differences though, and I - of course - don't know the original output of the API, and I haven't tested whether the output would be (directly) compatible. However, here are the two URL's used by the different apps:

    webos:
    http://translate.google.com/translat...&sl=auto&tl=nl

    add-on:
    https://translate.google.com/transla...20is%20awesome


    There are a few obvious differences that I will address here:
    • https vs http -- this doesn't seem to matter. Both are accepted by translate.google
    • single?client=t vs t?client=webapp -- This one greatly affects the output, but specifically single vs t (using single with client=webapp does not seem to have an effect).

      output single: [[["webOS is geweldig","webos is awesome",,,0]],,"en",,,[["webos",1,[["webOS",997,true,false],["webOS te",0,true,false]],[[0,5]],"webos is awesome",0,1],["is awesome",2,[["is geweldig",947,true,false],["is awesome",7,true,false],["is fantastisch",0,true,false],["is hier geweldig",0,true,false],["geweldig",0,true,false]],[[6,16]],,1,3]],0.33810771,,[["en"],,[0.33810771],["en"]]]

      output t: ["webOS is geweldig","en"]
    • a whole bunch of dt= ... -- These seem to determine what is returned. But to be honest, by removing each one individually only saw an effect with two of them: dt=t and dt=at. Everything else resulted in the default output:

      dt=t: [,,"en",,,[["webos",1,[["webOS",997,true,false],["webOS te",0,true,false]],[[0,5]],"webos is awesome",0,1],["is awesome",2,[["is geweldig",947,true,false],["is awesome",7,true,false],["is fantastisch",0,true,false],["is hier geweldig",0,true,false],["geweldig",0,true,false]],[[6,16]],,1,3]],0.33810771,,[["en"],,[0.33810771],["en"]]]

      dt=at: [[["webOS is geweldig","webos is awesome",,,0]],,"en",,,,0.33810771,,[["en"],,[0.33810771],["en"]]]
    • q vs text -- changing q into text doesn't seem to affect the output.
    • a token -- this token is probably the most essential part. Without it you get an 'Our systems have detected unusual traffic from your computer network. Please try your request again later.'-message. In other words: without the correct token there is no possibility to fix the app.


    With the above in mind, using the original webOS request, but simply adding the token will give a correct (raw text) response...albeit the shortened single vs t request...but this might be all that is needed, I don't know yet. There is, however, one problem. The token is not fixed but has to be calculated based on a number of factors including the words that are being translated (so using the same token with a different query won't work) and from the looks of it the current time. Fortunately this code could be lifted from the add-on (see below, where the input a === your string to be translated (here: webos is awesome)).

    Code:
    function calcToken(a) { /* hashing algorithm to generate token, input is any string */
      function reducedLevel(a, b) {
        for (var c = 0; c < b.length - 2; c += 3) {
          var d = b.charAt(c + 2);
          d = d >= 'a' ? d.charCodeAt(0) - 87 : Number(d);
          d = b.charAt(c + 1) == '+' ? a >>> d : a << d;
          a = b.charAt(c) == '+' ? a + d & 4294967295 : a ^ d;
        }
        return a;
      }
      /*  */
      var b = parseInt((new Date()).getTime() / 1000 / 3600);
      for (var d = [], e = 0, f = 0; f < a.length; f++) {
        var g = a.charCodeAt(f);
        /* if-then */
        128 > g ? 
          d[e++] = g : 
            (2048 > g ? 
              d[e++] = g >> 6 | 192 : 
                (55296 == (g & 64512) && f + 1 < a.length && 56320 == (a.charCodeAt(f + 1) & 64512) ? 
                  (g = 65536 + ((g & 1023) << 10) + (a.charCodeAt(++f) & 1023), d[e++] = g >> 18 | 240, d[e++] = g >> 12 & 63 | 128) : 
                    d[e++] = g >> 12 | 224, d[e++] = g >> 6 & 63 | 128), d[e++] = g & 63 | 128
            );
      }
      /*  */
      a = b;
      d.forEach(function(di) {a = reducedLevel(a + di, '+-a^+6')});
      a = reducedLevel(a, "+-3^+b+-f");
      a = a >= 0 ? a : ((a & 2147483647) + 2147483648);
      a %= Math.pow(10, 6);
      var token = a.toString() + '.' + (a ^ b);
      return token;
    }
    So is it possible to fix the app? - I think it might. Is it trivial? - No, not really, but a lot can be done through copy/paste from the add-on Mazzinia linked.



    ps. audio information is a different call to google, and I didn't look into those yet for either application.
  6.    #166  
    Quote Originally Posted by Misj' View Post
    We might have to start a dedicated thread for this, because I don't think this is the ideal place (and I remember how many posts it took us to fix accuweather).
    Back to the original thread: Translator

    I've listed a few details and referenced this discussion there.
  7. #167  
    Preddit seems to have died within the last few days. It hasn't been updated since 2010, so I suppose it's to be expected. It's kind of surprising that it lasted this long.

    -- Sent from my Palm Pre3 using Forums
    IIIxe | z22 | Pre 3 | Bold 9900 | Q10 | Nexus 4
  8. #168  
    Quote Originally Posted by Shuswap View Post
    Preddit seems to have died within the last few days. It hasn't been updated since 2010, so I suppose it's to be expected. It's kind of surprising that it lasted this long.

    -- Sent from my Palm Pre3 using Forums
    As the original developer, I too am suprised that anyone even knows it exists at this point.
    I hadn't heard of anyone continuing to maintain it since I had to stop.
    Shuswap likes this.
  9. #169  
    Quote Originally Posted by jetsfandb View Post
    As the original developer, I too am suprised that anyone even knows it exists at this point.
    I hadn't heard of anyone continuing to maintain it since I had to stop.
    Hey, thanks for developing the app way back when. Much appreciated. I don't think anyone's been maintaining it, so reddit must not have made much in the way of changes over the years.

    The only flaw prior to this is that it only gave me a partial list of my subscriptions.

    I'd try to fix it myself (and probably will have a look), but that's kind of like popping your hood and handing a second-grader a wrench :P

    -- Sent from my Palm Pre3 using Forums
    IIIxe | z22 | Pre 3 | Bold 9900 | Q10 | Nexus 4
  10. #170  
    Seems like the functionality for RSS feeds is gone for the app Headlines 2. I liked this app very much because of the Readability window. You didn't have to read the articles in the web browser like in other feed-apps.
    Reading articles that are already loaded into the feeds is still working. But when trying to load new arcticles there is a message:
    Something went wrong...
    We received an error from the service.: Error was: This API is no longer available.
    I still hope that this API is not important for loading RSS feeds but for a service that is not really needed. But I couldn't find out which API is no longer available..
  11.    #171  
    Does RSS require an 'API'? I thought Really Simple Syndication was an open standard.
    https://en.wikipedia.org/wiki/Rss

    Then again, Feedspider presumably needs the API for the various aggregator sites... So what does Headlines2 connect to? Is there a thread for this app?
    A: Yes: Headlines2 - RSS Feed and News Reader It appears this app is by Codingbees
    Last edited by Preemptive; 01/13/2017 at 01:03 PM.
    Nafetz likes this.
  12. #172  
    Remember when USA Today went dead but some of the news bars still worked. Lou from USA Today re-enabled the key on their end so we could keep using the app. Could this be all that's needed for Headlins2?

    Kurt B.
    Yes, that is a Britten super bike.
    Nafetz likes this.
  13.    #173  
    @Nafetz
    I posted some links on the thread. You can try contacting the developer.
    Headlines2 - RSS Feed and News Reader
    Nafetz likes this.
  14.    #174  
    Star Wars Weather by Tom Scott (original code apparently by Alan Stice & Rich Dunbar). This uses the Yahoo weather API - now locked down. Perhaps a different service can be used?
    Rnp likes this.
  15. #175  
    Star Wars Weather is broken since last year...
  16.    #176  
    Quote Originally Posted by gazaud View Post
    Star Wars Weather is broken since last year...
    Hmmm... I use Accu weather and only opened SW weather idly. I recall it looked quite nice, but I guess there aren't many Star Wars fans here. It is a successful franchise after all!

    I'll start a thread for obscure but brilliant Science Fiction films and we can make an app to display the weather on those fictional planets. Spoiler Alert: The weather on the Planet of the Apes is exactly the same as Earth's, only in the future!
  17. #177  
    Quote Originally Posted by jetsfandb View Post
    As the original developer, I too am suprised that anyone even knows it exists at this point.
    I hadn't heard of anyone continuing to maintain it since I had to stop.
    Hey. I managed to fix the app. I can't really believe that just going through the files and replacing all the http's with https's worked, but it did. Shocking.

    I know less than nothing. I don't know how to create a patch. That's what I would have done if I knew how. In any case, would you mind if I posted the .ipk here?
    IIIxe | z22 | Pre 3 | Bold 9900 | Q10 | Nexus 4
  18. #178  
    Quote Originally Posted by Shuswap View Post
    Hey. I managed to fix the app. I can't really believe that just going through the files and replacing all the http's with https's worked, but it did. Shocking.

    I know less than nothing. I don't know how to create a patch. That's what I would have done if I knew how. In any case, would you mind if I posted the .ipk here?
    congrats
  19. #179  
    I emailed David, Preddit's developer, and he gave me permission to post the updated app. I had to put the app in a zip archive because the system won't let me attach an .ipk.

    The app works, but the /r button does not. I've been looking at the reddit API, and some of the links have changed since 2010. Perhaps one day I'll update them if I have time. I think the app occasionally creates some frozen/hanging/churning behaviour behind the scenes, because I managed to get it stuck a few times, followed by dramatic battery drain.
    Attached Files Attached Files
    IIIxe | z22 | Pre 3 | Bold 9900 | Q10 | Nexus 4
    Preemptive likes this.
  20.    #180  
    I have updated the 'saved apps' post! (page one of this thread)
    http://forums.webosnation.com/webos-...ml#post3412106
    Shuswap and jetsfandb like this.
Page 9 of 9 FirstFirst ... 456789

Similar Threads

  1. Replies: 0
    Last Post: 01/09/2010, 03:06 PM
  2. Theme Request (Ghost Hunters & Rob Zombie)
    By ronnika12580 in forum webOS Themes
    Replies: 0
    Last Post: 12/06/2009, 12:40 AM
  3. app request: zombie run
    By SOLARTACO3 in forum webOS Development
    Replies: 4
    Last Post: 10/11/2009, 07:46 PM
  4. After Installing AT&T update have two new icons on App. list
    By deadhead in forum Palm OS Devices & Apps
    Replies: 4
    Last Post: 05/26/2004, 04:13 PM

Tags for this Thread

Posting Permissions