Re: gtk-app to search google scholar

2012-05-25 Thread James Morris
On 22 May 2012 21:20, Rudra Banerjee bnrj.ru...@yahoo.com wrote:
 Dear friends,
 I am trying to make a gtk application that will create a bibtex.
 The problem is I am a novice in C/gtk programming(this will be only my
 2nd programme in gtk).
 To do that, First and foremost, I need to search google scholar from the
 code. I tried using lynx and failed.
 Can anyone kindly show me a simple code in C that can fetch data from
 google scholar with Import into bibtex entry on?

According to 
http://en.wikipedia.org/wiki/Google_Scholar#Features_and_specifications
As of March 2012, Google Scholar is not yet available to the Google AJAX API.
So I would guess there will not be any simple C code to achieve what you want.
James.


 Best and Regards,
 --
 Rudra Banerjee

 If possible, plz. don't send me MsWord/PowerPoint mails. Why? See
 http://www.gnu.org/philosophy/no-word-attachments.html

 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Slow combo box when adding 500 rows

2012-05-25 Thread Osmo Antero
Hello,
I just tested the code on my older 2-cpu-core laptop and it loads
lightning fast (within 0.5 or 2 seconds for both gtk2 and gtk3.). So
it must be some peculiarities with my i7 8-core laptop, or with the
Ubuntu 12.04 itself.

Here are also GtkPerf tests on both these machine.

1) GtkPerf test on this super 8-cpu-core laptop.
CPU: Intel® Core™ i7-2670QM CPU @ 2.20GHz × 8.
RAM: 8GB.
GPU: GeForce GT 525M.
The combo loads very slowly on this.

$ gtkperf
GtkPerf 0.40 - Starting testing: Fri May 25 15:12:54 2012
GtkEntry - time:  0.03
GtkComboBox - time:  1.47
GtkComboBoxEntry - time:  0.97
GtkSpinButton - time:  0.09
GtkProgressBar - time:  0.07
GtkToggleButton - time:  0.65
GtkCheckButton - time:  0.09
GtkRadioButton - time:  0.13
GtkTextView - Add text - time:  0.50
GtkTextView - Scroll - time:  0.05
GtkDrawingArea - Lines - time:  0.52
GtkDrawingArea - Circles - time:  0.62
GtkDrawingArea - Text - time:  0.21
GtkDrawingArea - Pixbufs - time:  0.04
 ---
Total time:  5.45
---

2) GtkPerf test on my old 2-core-cpu laptop.
CPU: Genuine Intel(R) CPU  T2080  @ 1.73GHz.
RAM: 2GB.
GPU: Advanced Micro Devices [AMD] nee ATI RC410 [Radeon Xpress 200M]
The combo appears almost instantly on this laptop. Especially fast on
gtk2, but gtk3 is quick too.

$ gtkperf
GtkPerf 0.40 - Starting testing: Fri May 25 15:38:56 2012

GtkEntry - time:  0.09
GtkComboBox - time:  3.31
GtkComboBoxEntry - time:  2.77
GtkSpinButton - time:  0.30
GtkProgressBar - time:  0.23
GtkToggleButton - time:  1.29
GtkCheckButton - time:  0.23
GtkRadioButton - time:  0.38
GtkTextView - Add text - time:  1.30
GtkTextView - Scroll - time:  0.46
GtkDrawingArea - Lines - time:  0.96
GtkDrawingArea - Circles - time:  1.70
GtkDrawingArea - Text - time:  0.92
GtkDrawingArea - Pixbufs - time:  0.19
 ---
Total time: 14.15

These GtkPerf tests do not support the bad video adapter theory. The
results are as expected.

I will later test Fedora and maybe LinuxMint 13 on this super machine.
Maybe I kill Ubuntu!

And BTW: The actual application will be a desktop-radio. It loads
station names and urls from a large xml-file
(Ref: http://home.online.no/~osmoma//radio/all_radio_channels.xml ).
The radio stations are Grouped by countries, genres of music etc,
and I will let user search among these channel groups. The xml-file
itself loads without delay.

Ok, thanks so far. All well.
Kindly
  Osmo Moma Antero

On Thu, May 24, 2012 at 10:14 PM, Michael Cronenworth m...@cchtml.com wrote:
 Osmo Antero wrote:
 Adding rows to a combo box with a GtkListStore is immensely slow.
 Is it right that adding 500 rows can take upto 10 seconds and the GUI 
 freezes?

 I have similar hardware but with the NVIDIA driver so it only freezes
 for about 2 seconds on my system.

 [snip]
 What is your opinion?
 Should I use a thread to add data after the GUI has been displayed?

 It looks like a GTK3 performance issue. Running your app against GTK2
 results in the combo widget displaying instantly. Another reason why I
 have not jumped from GTK2 to GTK3 yet.

 You should file a bug with this test case.
 ___
 gtk-app-devel-list mailing list
 gtk-app-devel-list@gnome.org
 https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



-- 
// moma
   http://www.futuredesktop.org
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


Re: Slow combo box when adding 500 rows

2012-05-25 Thread Osmo Antero
Re-hello,
Just to round up,
I installed LinuxMint 13 (with Cinnamon Desktop), and the combo box
loads very, very fast on this installation, with both gtk2 and gtk3.
This is a huge difference compared to my Ubuntu 12.04 partition.

I tried to fix Ubuntu by upgrading its linux 3.2.generic-pae kernel
to linux 3.4 generic, but it did not help. So there's something
inside Ubuntu that is the  hindrance.

$ dpkg -l | egrep -i dbg|debug
nada

Anyway, this is a happy ending.
LinuxMint13 runs like a dream on this 8-core Toshiba Satellite L755 laptop.

Osmo Antero
ps. audio-recorder;
https://launchpad.net/audio-recorder
___
gtk-app-devel-list mailing list
gtk-app-devel-list@gnome.org
https://mail.gnome.org/mailman/listinfo/gtk-app-devel-list