maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [Announce] Macuco(2) on n900 - "iphone faker" browser (https://talk.maemo.org/showthread.php?t=51487)

hschmitt 2010-08-06 10:47

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 776492)
I would really like to figure out how to disable the "auto complete" before promoting it. It is quite annoying....

Why do you ask? Do you think it could still be useful as it is?

I think it is, but would be even better when fixed.
Aren't there other Qt projects, that fixed this problem?
I am trying to ask all projects in Extras-testing that are promotable.
Your app is only a few days promotable, but there are apps that wait 4 weeks for the maintainer to do a action.
If you think the app is not in the shape to go to Extras repository then you should vote with thump down, which will remove the package from Extras-testing.

fcrochik 2010-08-06 11:55

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by hschmitt (Post 777650)
I think it is, but would be even better when fixed.
Aren't there other Qt projects, that fixed this problem?

I don't know of any other qt/maemo5/webkit projects

Quote:

Originally Posted by hschmitt (Post 777650)
I am trying to ask all projects in Extras-testing that are promotable.
Your app is only a few days promotable, but there are apps that wait 4 weeks for the maintainer to do a action.
If you think the app is not in the shape to go to Extras repository then you should vote with thump down, which will remove the package from Extras-testing.

I think the application is useful as it is but it is quite annoying... I will think about it some more... suggestions with this regard from the current users are welcome.

hschmitt 2010-08-06 12:25

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 777716)
I don't know of any other qt/maemo5/webkit projects


I think the application is useful as it is but it is quite annoying... I will think about it some more... suggestions with this regard from the current users are welcome.

Maybe a troll from Qt team has a hint? Their bugtracker is open. You should ask them.

fcrochik 2010-08-06 14:34

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by hschmitt (Post 777740)
Maybe a troll from Qt team has a hint? Their bugtracker is open. You should ask them.

Martin just pointed out to me that this is a known bug: http://bugreports.qt.nokia.com/browse/QTBUG-12171

I will see if I can find a work around for this bug or to make the qt4.7 version work and then will promote the package. If nothing else I want to make sure that this project can have a new version soon that works before promoting the existing one to extras.

hschmitt 2010-08-07 14:47

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 777856)
Martin just pointed out to me that this is a known bug: http://bugreports.qt.nokia.com/browse/QTBUG-12171

I will see if I can find a work around for this bug or to make the qt4.7 version work and then will promote the package. If nothing else I want to make sure that this project can have a new version soon that works before promoting the existing one to extras.

And there is the change, that should do it but does not:
Code:

#ifdef Q_WS_MAEMO_5
// Maemo 5 MicroB Browser disables auto-uppercase and predictive text, thus, so do we.
webPageClient->setInputMethodHint(Qt::ImhNoAutoUppercase, true);
webPageClient->setInputMethodHint(Qt::ImhNoPredictiveText, true);
#endif // Q_WS_MAEMO_5

Can you get hold of the object and try to set it again?

fcrochik 2010-08-07 16:45

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by hschmitt (Post 778803)
And there is the change, that should do it but does not:
Code:

#ifdef Q_WS_MAEMO_5
// Maemo 5 MicroB Browser disables auto-uppercase and predictive text, thus, so do we.
webPageClient->setInputMethodHint(Qt::ImhNoAutoUppercase, true);
webPageClient->setInputMethodHint(Qt::ImhNoPredictiveText, true);
#endif // Q_WS_MAEMO_5

Can you get hold of the object and try to set it again?

On a quick inspection of the code it seems that I can't... The "d" on the code bellow is private and I could not find any method that exposes it even to a class that inherits it.

Code:

QWebPageClient* webPageClient = m_page->d->client;
(*) m_page is a QWebPage object

The only I can think of would be to recompile the qtwebkit module but that would create another set of problems... Do you know of any other way or have any other ideas?

Felipe

daperl 2010-08-07 17:59

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 778900)
On a quick inspection of the code it seems that I can't... The "d" on the code bellow is private and I could not find any method that exposes it even to a class that inherits it.

Code:

QWebPageClient* webPageClient = m_page->d->client;
(*) m_page is a QWebPage object

The only I can think of would be to recompile the qtwebkit module but that would create another set of problems... Do you know of any other way or have any other ideas?

Felipe

For now, why not just cast using fake data types where d and client are the same bytes away as in the private data types. Or even better, just copy, paste and rename the private data types. The following compiles:

Code:

typedef struct {
  int z;
} QWebPageClient;

typedef struct {
  int *zi;
  QWebPageClient *client;
} d_type;

typedef struct {
  int *zi;
  QWebPageClient *client;
} fake_d_type;

typedef struct {
  long *al;
  d_type *d;
} m_page_type;

typedef struct {
  int *ai;
  fake_d_type *d;
} fake_m_page_type;

main () {

  m_page_type *m_page;
  QWebPageClient *webPageClient;

  webPageClient = ((fake_m_page_type *)m_page)->d->client;

}


daperl 2010-08-07 18:20

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Woops, redid using classes. Still compiles.

Code:

class QWebPageClient {
  int z;
};

class d_class {
  private:
    int *zi;
    QWebPageClient *client;
};

class fake_d_class {
  public:
    int *zi;
    QWebPageClient *client;
};

class m_page_class {
  private:
    long *al;
    d_class *d;
};

class fake_m_page_class {
  public:
    long *al;
    fake_d_class *d;
};

main () {

  m_page_class *m_page;
  QWebPageClient *webPageClient;

  webPageClient = ((fake_m_page_class *)m_page)->d->client;

}


fcrochik 2010-08-07 19:51

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by daperl (Post 778964)
Woops, redid using classes. Still compiles.

It would be an ugly hack but I tried. Unfortunately didn't work... It seems that I got the fake classes right but calling the method does not affect how the input box behaves... The hints probably get updated every time a input control get the focus.

I would have to change the input hints just after a field get focus and just before the user can start typing.

I will look for some other options... I still think the best way out is to start using Qt4.7 but then we will have other issues.

daperl 2010-08-07 20:44

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
I don't think it got an official port to Maemo 5, but maybe you can take a look at the Arora code. It's a Qt webkit browser that ran well under Maemo 4, and it seems to be a very active project.

fcrochik 2010-08-08 03:02

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by daperl (Post 779050)
I don't think it got an official port to Maemo 5, but maybe you can take a look at the Arora code. It's a Qt webkit browser that ran well under Maemo 4, and it seems to be a very active project.

The issue seems to only affect maemo5 and, even worst, I suspect was introduced with PR1.2 becuase it didn't exist while using the experimental packages.

Unless it is a project that already works on maemo5 and has disabled the word completition probably won't help much with the issue at hand. Aurora is a great browser/project though.

fcrochik 2010-08-20 13:12

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Update

In consideration for the testers and hoping some people can find it useful as it is I just promoted the package to extras.

Because it takes a long time to have a package go trough testing I decided to move forward with the current version even with the "predictive text on input fields" bug. I am working on two different ways of fixing the problem and will upload them to extras-devel/testing as I get them ready.

I added this note to the first post on this thread:

IMPORTANT: There are some issues with how the QtWebkit handles input text on Qt4.6: the predictive input has some bugs for input fields. It is specially bad for password fields, making very hard to type them. The best work around until we get Qt4.7 is to type the password somewhere else, copy and paste it on the password field.

On another note: I tried to compile Arora for the n900 and it was quite easy. Unfortunately it would take a long time to adjust the user interface to work on the n900. It did help me figure out that the "predictive input" bug exists only on the QGraphicsWebView (not on QWebView).

jpfsn 2010-08-21 15:12

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 751625)
I agree.... I can't say for sure but I think it is something that has changed with PR1.2.

I tried to look for a way to disable it but because this thread and the test voting was not getting any hits I did not spend much time on it - I assumed people had found a replacement for it and there was not need to continue its development

Fcrochik,
This is really excellent and I agree that some sites just work better using Macuco.

The biggest fiddly bit for me is also the predictive text on usernames and passwords.
John

frostbyte 2010-08-21 15:55

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
As I don't particularly like widgets on the desktop(s), this app is great for quick browsing and social networking. It appears much quicker, as expected I guess, than say Opera10. So far only minor probs with passwords, and leafpad etc. copy-paste worked well. Occasionally little sticky with page scrolling, otherwise, great app! Thank you Fcrochik!

fcrochik 2010-08-21 18:54

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Just uploaded a new version of macuco2 (0.1.2) to extras-devel

There is one single change with this version that should avoid the "predictive text input bug" and allow you to enter passwords again.

I will wait couple days before moving it to testing. Please post to this thread if it works for you (or not) and any comments about this release.

Felipe

CYPHERC 2010-08-21 22:01

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
i love macuco i think is awesome (the icon ot so much lol) but i realli think is an awesome idea, the only thing is that in my case seems to work only on wifi not on cellphone data... why? can u help me pls?

fcrochik 2010-08-22 00:45

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by CYPHERC (Post 794407)
i love macuco i think is awesome (the icon ot so much lol) but i realli think is an awesome idea, the only thing is that in my case seems to work only on wifi not on cellphone data... why? can u help me pls?

It should work with any connection you can get data from the internet. I use all the time with my ATT connection.

CYPHERC 2010-08-22 01:08

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
yes i dont know why, i actually didnt use it anymore because of that, but i just try again and it did work, so i guess something was wrong.

But moving on, can u do the adress bar? and the loading status bar? just asking... i think that may be a lot of work but that will make it look better and more professional ;)

hschmitt 2010-08-25 19:43

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
browsing and input fields work very well.
Nevertheless the app could be optified (256KB). Each KB helps.

When I push "Add bookmark" the app closes unexpected.

fcrochik 2010-08-25 19:49

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by hschmitt (Post 798251)
browsing and input fields work very well.
Nevertheless the app could be optified (256KB). Each KB helps.

When I push "Add bookmark" the app closes unexpected.

I will fix both issues with the next release.

Thanks,
Felipe

fcrochik 2010-08-26 01:28

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
New Version 0.1.3 on extras-devel

This new version address the "Add Bookmark" bug. Also, from now on the application will get installed to /opt and I removed one unnecessary file that was being installed.

I will wait couple days before moving it to testing just in case new problems are found.

p.s. both issues were reported by hschmitt. Thank you!

hschmitt 2010-08-26 18:08

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by fcrochik (Post 798552)
New Version 0.1.3 on extras-devel

This new version address the "Add Bookmark" bug. Also, from now on the application will get installed to /opt and I removed one unnecessary file that was being installed.

I will wait couple days before moving it to testing just in case new problems are found.

p.s. both issues were reported by hschmitt. Thank you!

Well done, I voted.
Very nice browsing experience.

hellgor 2010-08-27 07:50

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
I cant play streaming-vid's, is there a plug-in\add-on availlable? Or another possibility. ;)

thanks!

fcrochik 2010-08-27 12:15

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by hellgor (Post 799817)
I cant play streaming-vid's, is there a plug-in\add-on availlable? Or another possibility. ;)

thanks!

There is not an easy or quick solution I am afraid.
I will look into it when I get a chance... I want to implement it in a way that can make use of the "standard" mime type associations on the n900.

hschmitt 2010-09-06 08:22

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
I made MWKN aware of macuco. I hope it gets more coverage by testers.

dagee04 2010-09-08 20:10

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
I love this program men but how do you go backwards? Everytime I use facebook I don't know how to go back to previous pages...

fcrochik 2010-09-08 20:14

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by dagee04 (Post 810979)
I love this program men but how do you go backwards? Everytime I use facebook I don't know how to go back to previous pages...

I still have to add some kind of navigation bar (like the original macuco had).... the "backspace" key should take you back to the previous page though

dagee04 2010-09-08 20:25

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
oh yeah the back space key works so that's good for me...thanks men for the quick reply....

hschmitt 2010-09-09 07:22

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by dagee04 (Post 810995)
oh yeah the back space key works so that's good for me...thanks men for the quick reply....

If you like the software, please spare some time for learning how package testing works at http://wiki.maemo.org/Help_testing_software
If application passes every point required in http://wiki.maemo.org/Extras-testing/QA_Checklist , give it thumbs up!

echoblack 2010-09-28 00:29

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Wow, this browser is actually fast.

I love this thing. The only problems I have is I get a page loading error a lot. I also dont find the homepage useful.

I do like the way it navigates and the speed. This is my goto browser now.

fcrochik 2010-11-30 23:34

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
New release 0.1.6 on extras-devel


Just two small changes:
  • application now will cache files to the disk - it should speed up things a little
  • icon on the Bookmarks window - you won't see icons for your existing bookmarks until you visit them again

p.s. not all web sites will provide an icon.

Art.M 2010-12-02 00:50

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Great to see this app updated.

Version 0.1.6 doesn't open

fcrochik 2010-12-02 01:20

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by Art.M (Post 887252)
Great to see this app updated.

Version 0.1.6 doesn't open

Very strange... anybody else experiencing problems with this release? It works just fine for me....

couple things that you can try:

1. run macuco from the x-terminal so we can see any error messages.
Code:

/opt/crochik/macuco2
2. reset the configuration. The cookies and your bookmarks will be removed - if it works after that you can send them to me and I can try to find out the problem and fix.

on the x-terminal, run:
Code:

mv /home/user/.config/Macuco /home/user/MyDocs
Please keep me posted.

uvatbc 2010-12-02 16:23

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Latest version segfaults after I try to browse to gmail using the provided bookmarks. No console output available before the output "Segmentation fault". Rebooting n900 to see if it has any effect.

Edit: Reboot has no effect. macuco2 still segfaults when rendering gmail

fcrochik 2010-12-02 17:47

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by uvatbc (Post 887672)
Latest version segfaults after I try to browse to gmail using the provided bookmarks. No console output available before the output "Segmentation fault". Rebooting n900 to see if it has any effect.

Edit: Reboot has no effect. macuco2 still segfaults when rendering gmail

I will have to double check the code... I installed on my phone using the version on the repository and works w/o any problems...

Have you tried renaming the configuration folder to see if has anything to do with the configuration files?

fcrochik 2010-12-02 18:40

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Found the bug! It has to do with the screen orientation. If you settings say anything other than auto it will crash.

I will publish a new version in few minutes

Thanks for reporting it.

fcrochik 2010-12-02 20:47

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
New Release 0.1.7 is out


It fixes the segfault on startup of the previous version.

Please make sure to drop me a note if it fixes the problem or not.

uvatbc 2010-12-02 22:30

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
It does not segfault on startup anymore. It does segfault eventually.
I am able to login to gmail, then macuco shows the inbox for about 5-8 seconds before it segaults. I did not click anywhere.

fcrochik 2010-12-02 22:44

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Quote:

Originally Posted by uvatbc (Post 887978)
It does not segfault on startup anymore. It does segfault eventually.
I am able to login to gmail, then macuco shows the inbox for about 5-8 seconds before it segaults. I did not click anywhere.

Did it happen more than once? This one seems more like a "deeper" problem that I don't think I could have caused....

Please play a little bit more and let me know what you find....

Thanks

fcrochik 2010-12-02 23:18

Re: [Announce] Macuco(2) on n900 - "iphone faker" browser
 
Just queued version 0.1.8


One more.... hopefully the last one to fix bugs... Announcing new features are so much more fun!

For anybody that cares about what is under the hood: I had enabled the Persistent Storage on WebKit (a HTML5 feature) in hopes that some web sites could make good use of it. It seems that Gmail tries to but that it ends up generating a segfault. I am going to create a little test application to make sure but likely this is a WebKit bug.

EDIT: By the way thanks art.m and uvatbc for finding the bug and sticking around to test it


All times are GMT. The time now is 21:16.

vBulletin® Version 3.8.8