Re: [Gambas-user] qt5

2016-06-16 Thread Ian Haywood
On Thu, Jun 16, 2016 at 7:22 PM, Benoît Minisini
 wrote:

> But putting gb.qt5 instead does not logically solve the problem, as we
> could imagine a distribution that provides qt4, qt4 webkit, qt5 and not
> qt5 webkit (as now webkit as been dropped by qt5)... Weird.
That's a problem. Will Qt5 have a HTML display widget of any sort?

Ian

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] qt5

2016-06-16 Thread Ian Haywood
On Wed, Jun 15, 2016 at 4:54 AM, Dimitris Anogiatis  wrote:
> Are the qt4 webkit and qt5 webkit too different that we can't use a symlink
> for qt4's webkit to point to qt5's webkit?
no they are too different: qt5 webkit won't load with Qt4.

> That way we could (theoretically) bridge the gap temporarily until qt5
> becomes more stable.
Qt5 is pretty stable. The only real problem AFAICT is TextEdit isn't
available in Qt5 in 3.8.4
This means you can't have TextEdit and WebKit in the same program at
the same time.
This issue is fixed in svn I believe.

Ian

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] qt5

2016-06-16 Thread Ian Haywood
On Wed, Jun 15, 2016 at 5:40 AM, Benoît Minisini
<gam...@users.sourceforge.net> wrote:
> Le 14/06/2016 13:21, Ian Haywood a écrit :
>>
>> The problem quite complicated. Gambas looks for Qt4 and Qt5. If both are 
>> found,
>> Qt4 is loaded.
>
> No, if Qt5 and Qt4 are present, Qt5 is used.
>
> The choice between both is implemented in the gb.gui.qt component. So if
> you have ideas about how to enhance the algorithm, tell me!
From the 3.8.4 sources: main/lib/gui.qt/main.c
I interperse my "translation", tell me where I'm wrong

59 if (use == USE_NOTHING)
so GB_GUI hasn't been set
 60 {
 61 use = USE_GB_QT4;
 try Qt4
 63 env = getenv("KDE_FULL_SESSION");
 64
 65 if (env && !strcmp(env, "true"))
 66 {
 67 env = getenv("KDE_SESSION_VERSION");
 68 if (env)
 69 {
 70 if (strcmp(env, "4") == 0)
 71 use = USE_GB_QT4;
 72 else if (strcmp(env, "5") == 0)
 73 use = USE_GB_QT5;
 74 }
 75 }
 76 }
 look for some KDE variables (which won't be set at all on non-KDE systems)
 78 switch (use)
 79 {
 80 case USE_GB_QT4: comp = "gb.qt4"; break;
 81 case USE_GB_QT5: comp = "gb.qt5"; break;
 82 default: comp = "gb.qt5"; break;
 83 }
turn setting constant into a string (remember we have set to
"USE_GB_QT4" above so "gb.qt4" will always be selected here)

 85 if (GB.Component.Load(comp))
try the first one
 86 {
 87 comp2 = use == USE_GB_QT5 ? "gb.qt4" : "gb.qt5";
 that didn't work, try the other
 89 if (GB.Component.Load(comp2))
 90 {
fail if that doesn't work either.
 91 fprintf(stderr, "gb.gui.qt: error:
unable to find any QT component\n");
 92 exit(1);
 93 }

my patch is very, very simple: line 61 becomes "use = USE_GB_QT5;",
and so Qt5 is loaded first.

Ian

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421=/41014381
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] qt5

2016-06-14 Thread Ian Haywood
On Mon, May 2, 2016 at 1:11 AM, Benoît Minisini
 wrote:
> Le 01/05/2016 16:01, Charlie a écrit :
>> Thanks for the reply Benoît. Ubuntu 16.04 has Gambas 3.8.4 which I also use
>> on Linux Mint 17.3 Cinnamon.
>> Here is the Gambas Farm error I get.
>> gambas1.png 
>> Here are the 'System information' details for both operating systems.
>> mint17.txt 
>> ubuntu16.txt 
>> Note that for future editions the English is 'System information' not
>> 'System information*s*'.
>>
>
> So I guess that (again) Debian/Ubuntu Gambas packages were made
> incorrectly...
I confess I've given up trying to find a 'correct' solution that
covers all cases.

The problem quite complicated. Gambas looks for Qt4 and Qt5. If both are found,
Qt4 is loaded.
However, Debian does not have WebKit for Qt4 (it was taken out because
they couldn't keep it secure, and wanted to concentrate on Qt5-WebKit,
I believe)
Consequently, the IDE and many other problems will crash (because they
load Qt4 but then can't find WebKit).

So, I tried making it a Conflicts: if you try to install the IDE, it
tries to remove Qt4. which causes more problems as noted above.

The other option is to patch Gambas on Debian so it preferentially
loads Qt5 (a bit of work). That will get the IDE working, but many
other programs won't run
(because Qt5 doesn't quite have the stability of Qt4, at least last
time I checked)

Sadly, my recommendation to all (our) users has been stick to
Mint/Ubuntu and the PPAs for now.

Ian

--
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] TextEdit on Qt5

2016-01-25 Thread Ian Haywood
Thanks heaps for doing this
I have found one problem that blocks loading the qt5 component at all
/usr/bin/gbi3: symbol lookup error: /usr/lib/gambas3/gb.qt5.so:
undefined symbol: _ZTV14FixBreezeStyle

On Sun, Jan 24, 2016 at 12:23 PM, Benoît Minisini
 wrote:
> Le 24/01/2016 02:18, Moviga Technologies a écrit :
>>
>>
>> Making all in ext
>> make[5]: Entering directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src/ext'
>>   CXX  gb_qt5_ext_la-main.lo
>> /usr/lib/qt/bin/moc -o CTextEdit_moc.cpp CTextEdit.h
>>   CXX  gb_qt5_ext_la-CTextEdit_moc.lo
>>   CXX  gb_qt5_ext_la-CTextEdit.lo
>>   CXXLDgb.qt5.ext.la
>> make[5]: *** No rule to make target 'gb.qt5.ext.component', needed by
>> 'all-am'.  Stop.
>> make[5]: Leaving directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src/ext'
>> Makefile:1330: recipe for target 'all-recursive' failed
>> make[4]: *** [all-recursive] Error 1
>> make[4]: Leaving directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5/src'
>> Makefile:448: recipe for target 'all-recursive' failed
>> make[3]: *** [all-recursive] Error 1
>> make[3]: Leaving directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5'
>> Makefile:380: recipe for target 'all' failed
>> make[2]: *** [all] Error 2
>> make[2]: Leaving directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk/gb.qt5'
>> Makefile:438: recipe for target 'all-recursive' failed
>> make[1]: *** [all-recursive] Error 1
>> make[1]: Leaving directory
>> '/home/jornmo/Sync/Gambaspakker/Gambas-SVN/src/trunk'
>> Makefile:379: recipe for target 'all' failed
>> make: *** [all] Error 2
>>
>>
>
> Oops, fixed in revision #7585.
>
> --
> Benoît Minisini
>
> --
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] TextEdit on Qt5

2016-01-23 Thread Ian Haywood
This was a lot simpler than I thought.
I enclose a working patch. Two outstanding issues:
- the TextEdit has a grey background (the system default) and ignores
setting .Background = Color.White
- the documentation doesn't appear in the IDE (because it's looking
for qt4.TextEdit, whereas the docs wil lbe under
qt5.ext.TextEdit)

I suspect I'm missing something (i.e. if it's so easy presumably
Benoit had a good reason for not doing it at the start)
Anyway I hope this will kick the work along... as I said several of us
*really need* TextEdit!

Ian
diff --git a/gb.qt4/src/main.cpp b/gb.qt4/src/main.cpp
index 543dc7c..b3bfec6 100644
--- a/gb.qt4/src/main.cpp
+++ b/gb.qt4/src/main.cpp
@@ -99,6 +99,8 @@
 #include 
 #ifndef QT5
 #include "CEmbedder.h"
+#else
+#include "CTextEdit.h"
 #endif
 
 #include "desktop.h"
@@ -147,6 +149,9 @@ GB_CLASS CLASS_ScrollView;
 GB_CLASS CLASS_Image;
 GB_CLASS CLASS_SvgImage;
 GB_CLASS CLASS_TextArea;
+#ifdef QT5
+GB_CLASS CLASS_TextEdit;
+#endif
 
 static bool in_event_loop = false;
 static int _no_destroy = 0;
@@ -1298,6 +1303,9 @@ GB_DESC *GB_CLASSES[] EXPORT =
CWatcherDesc,
PrinterDesc,
SvgImageDesc,
+#ifdef QT5
+   CTextEditSelectionDesc, CTextEditFormatDesc, CTextEditDesc,
+#endif
NULL
 };
 
@@ -1406,7 +1414,9 @@ int EXPORT GB_INIT(void)
CLASS_Image = GB.FindClass("Image");
CLASS_SvgImage = GB.FindClass("SvgImage");
CLASS_TextArea = GB.FindClass("TextArea");
-
+#ifdef QT5
+   CLASS_TextEdit = GB.FindClass("TextEdit");
+#endif
QT_InitEventLoop();
 
#ifdef OS_CYGWIN
diff --git a/gb.qt5/src/CTextEdit.cpp b/gb.qt5/src/CTextEdit.cpp
new file mode 100644
index 000..bb0bc20
--- /dev/null
+++ b/gb.qt5/src/CTextEdit.cpp
@@ -0,0 +1,728 @@
+/***
+
+  CTextEdit.cpp
+
+  (c) 2000-2013 Benoît Minisini 
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; either version 2, or (at your option)
+  any later version.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+  You should have received a copy of the GNU General Public License
+  along with this program; if not, write to the Free Software
+  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+  MA 02110-1301, USA.
+
+***/
+
+#define __CTEXTEDIT_CPP
+
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+#include 
+ 
+#include "gambas.h"
+#include "main.h"
+#include "CFont.h"
+#include "CConst.h"
+#include "CTextEdit.h"
+
+
+DECLARE_EVENT(EVENT_Change);
+DECLARE_EVENT(EVENT_Cursor);
+
+#if 0
+static void to_pos(Q3TextEdit *wid, int par, int car, int *pos)
+{
+  int i, l;
+  int p = 0;
+
+  for (i = 0; i < par; i++)
+  {
+l = wid->paragraphLength(i);
+if (l < 0)
+  break;
+p += l + 1;
+  }
+
+  *pos = p + car;
+}
+
+
+static void from_pos(Q3TextEdit *wid, int pos, int *par, int *car)
+{
+  int i;
+  int l;
+
+  for (i = 0; i <= wid->paragraphs(); i++)
+  {
+l = wid->paragraphLength(i);
+if (l < 0)
+{
+  pos = wid->length();
+  i--;
+  break;
+}
+if (pos <= l)
+  break;
+pos -= l + 1;
+  }
+
+  *par = i;
+  *car = pos;
+}
+
+
+static void look_pos(Q3TextEdit *wid, int *line, int *col)
+{
+  if (*line == -1)
+*line = wid->paragraphs();
+
+  if (*col == -1)
+*col = wid->paragraphLength(*line);
+}
+
+
+static void get_selection(Q3TextEdit *wid, int *start, int *length)
+{
+  int pStart, iStart, pEnd, iEnd;
+  int posEnd;
+
+  wid->getSelection(, , , );
+
+  if (pStart < 0)
+  {
+wid->getCursorPosition(, );
+to_pos(wid, pStart, iStart, start);
+*length = 0;
+return;
+  }
+
+  to_pos(wid, pStart, iStart, start);
+  to_pos(wid, pEnd, iEnd, );
+
+  *length = posEnd - *start;
+}
+#endif
+
+static int get_length(void *_object)
+{
+   if (THIS->length < 0)
+   {
+   QTextBlock block = WIDGET->document()->begin();
+   int len = 0;
+   
+   while (block.isValid())
+   {
+   len += block.length();
+   block = block.next();
+   }
+
+   THIS->length = len - 1;
+   }
+   
+   return THIS->length;
+}
+
+static int get_column(void *_object)
+{
+   QTextCursor cursor = WIDGET->textCursor();
+   return cursor.position() - cursor.block().position();
+}
+
+static void to_pos(QTextEdit *wid, int par, int car, int *pos)
+{
+   QTextCursor cursor = wid->textCursor();
+   QTextBlock block = cursor.block();
+  int p = 0;
+
+  while (par)

Re: [Gambas-user] Debian problem step 3.5.4 to 3.8.4

2016-01-20 Thread Ian Haywood
On Tue, Jan 19, 2016 at 8:45 PM, Gianluigi  wrote:
> Hello to all,
> a friend of ours of Gambas-it forum, runs Debian and updated from version
> 3.5.4 to 3.8.4.
> He can no longer use the old qt4 projects.
> He tried compile, compile all, refresh, reload … but nothing.
> Changing with gb.gui.qt in some projects the Fmain.class disappears and in
> the other Fmain.form.
> On Update all forms he gets this message: “Unable to update all forms! Too
> many arguments. ProjectUpdateAllForms.5941”.

Is he/she using TextEdit?

This is the problem I have run into: Debian no longer supports Qt4,
and Qt5 on Gambas
has no TextEdit, so my project doesn't load.

I would like to enter in another plea for TextEdit to be supported on Qt5.
Previous discussions have been around a Gambas-native rich text
editor: agree that's a
lot of work, but also unnecessary: Qt5 has a rich text editor (see
http://doc.qt.io/qt-5/richtext.html)
I don't see why that cannot be used.

I'd have a crack at doing it myself but I have limited time and
haven't used C++/Qt for many years
so it would take some time to relearn.
Would be happy to pay if there are others able to here.

ian

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #880: gambas-gb-pdf will not install

2016-01-17 Thread Ian Haywood
On Sat, Dec 26, 2015 at 9:44 AM,   wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.880=L21haW4-
>

>
> Description
> ---
>
> Gambas 3.8.4 running under Kubuntu 14.04 LTS.
the key question is where you got that 3.8.4 .deb from
(it won't have been form the standard 14.04 repositories)

Ian

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Gambas Bug Tracker] Bug #835: gambas3 doesn't build with llvm > 3.5

2016-01-13 Thread Ian Haywood
On Tue, Nov 17, 2015 at 5:32 AM,   wrote:
> http://gambaswiki.org/bugtracker/edit?object=BUG.835=L21haW4-
>
> Comment #10 by Gianfranco COSTAMAGNA:

> I'm not the debian gambas package maintainer, but I guess I'll ping the 
> maintainers or upload in a delayed queue the fixes.
>
> thanks so far for the support!
One of the issues is, if not you, then gambas doesn't really have a
Debian "maintainer". I'm happy to help, but I'm wary of doing a lot of
work without a debian developer active and interested. in the past I
have had contributions sitting in alioth git waiting for weeks/months
to be uploaded.
(unfortunately debian does not have an equivalent to "launchpad" for
making third-party .debs available)

Ian

--
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] running IDE with Qt5

2015-12-05 Thread Ian Haywood
On Sun, Dec 6, 2015 at 11:03 AM, PICCORO McKAY Lenz
 wrote:
> set a env variable to QT5 and that's all, of course, all the
> components in qt5 framework must be set, packages made for some
> disributions may have some misc but works in general lines
when packaging for a distro the interpreter should work "out of the
box", users should be
able to type "gambas3" or launch form the menus, not "GB_GUI=QT5 gambas3"

One solution is to have a wrapper shell script that sets the variable
Easier IMHO is to patch main/lib/gui.qt/main.c to prefer qt5 over qt4
which is probably what Debian will end up doing.

Ian

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] running IDE with Qt5

2015-12-03 Thread Ian Haywood
is there a way to run the IDE with Qt5 only (not Qt4 at all)
The reason is Qt4 webkit is getting pulled out of Debian, so we are
not allowed to depend on it anymore.

Ian

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] running IDE with Qt5

2015-12-03 Thread Ian Haywood
On Fri, Dec 4, 2015 at 1:10 AM, Benoît Minisini
<gam...@users.sourceforge.net> wrote:
> Le 03/12/2015 11:47, Ian Haywood a écrit :
>> is there a way to run the IDE with Qt5 only (not Qt4 at all)
>> The reason is Qt4 webkit is getting pulled out of Debian, so we are
>> not allowed to depend on it anymore.
>>
>> Ian
>>
>
> The algorithm is the following:
>
> if GB_GUI is "QT4", then gb.qt4 is used.
> if GB_GUI is "QT5", then gb.qt5 is used.
> otherwise,
>if KDE_FULL_SESSION is "true", then
>  if KDE_SESSION_VERSION is "4", then gb.qt4 is used.
>  if KDE_SESSION_VERSION is "5", then gb.qt5 is used.
> othewise, gb.qt5 is used.
I thought so, but I am finding that on 3.8.3 at least, if gb.qt4 and
gb.qt5 are both present,
gb.qt4 is used (which then fails, as no gb.q4.webkit is present)
Removing gb.qt4 from the system is the solution: the IDE then has nbo
choice but to run successfully with gb.qt5

Ian

--
Go from Idea to Many App Stores Faster with Intel(R) XDK
Give your users amazing mobile app experiences with Intel(R) XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2D/3D high-impact games for multiple OSs.
http://pubads.g.doubleclick.net/gampad/clk?id=254741911=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] The interview on FLOSS

2015-09-19 Thread Ian Haywood
On Sat, Sep 19, 2015 at 11:21 PM, Ru Vuott  wrote:
>>  "autodidact" *is* an English word,
>
> ..that doesn't come from english
sure, can you think of a word that does?

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] The interview on FLOSS

2015-09-19 Thread Ian Haywood
On Thu, Sep 10, 2015 at 12:55 AM, Benoît Minisini
 wrote:
> I have been interviewed by Randall Schwartz and Simon Phipps on the
> FLOSS weekly show on twit.tv. You can show the interview at:
>
> https://twit.tv/shows/floss-weekly/episodes/353
>
> If you watch it, you will probably notice that I will never become an
> english teacher.
Your English was pretty easy to understand
FYI "autodidact" *is* an English word, evidently it has the same
meaning as French
(your use of it was correct in context)

Ian

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release goals for 3.7 / 4.0

2014-10-23 Thread Ian Haywood
On Wed, Oct 22, 2014 at 1:38 AM, Benoît Minisini
gam...@users.sourceforge.net wrote:
 Le 21/10/2014 16:25, PICCORO McKAY Lenz a écrit :


 The rule is the following: A program made with Gambas 3.X will work with
 all Gambas 3.Y where Y = X, except if your program relies on the bad
 behaviour of a bug that is fixed in a new version.
the issue is developers usually have a bleeding-edge version, so
when they compile gambas binaries, they won't work on older versions
of the runtime that some distros (*cough* debian *cough*) use.

what I have done is produce a source debian package that then gets
compiled using gbc3 on the command line (just like building a C program)
with whatever version is on that debian version.
 You have to do with that rule, as I don't see any other rule that allows
 me to continue working on it.
ideally back-compiling to older versions as an option in the IDE,
but I appreciate that would be quite hard to do, your
time may be  more usefully spent on other things.

Ian

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: Pre-release of Gambas 3.6 (2)

2014-10-14 Thread Ian Haywood
compiles but lots of warnings on Debian testing

make[4]: Entering directory
'/home/ian/Downloads/gambas3-3.6.0/gb.desktop.gnome.keyring/src'
  CC   gb_desktop_gnome_keyring_la-main.lo
  CC   gb_desktop_gnome_keyring_la-keyring.lo
keyring.c: In function 'get_password':
keyring.c:50:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:53:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:57:5: warning: 'gnome_keyring_find_items_sync' is deprecated
(declared at /usr/include/gnome-keyring-1/gnome-keyring.h:321): Use
'secret_service_search_sync' instead [-Wdeprecated-declarations]
 result = gnome_keyring_find_items_sync(GNOME_KEYRING_ITEM_GENERIC_SECRET,
 ^
keyring.c:60:5: warning: 'gnome_keyring_attribute_list_free' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:155): Use
'g_hash_table_unref' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_free(attributes);
 ^
keyring.c:74:5: warning: 'gnome_keyring_found_list_free' is deprecated
(declared at /usr/include/gnome-keyring-1/gnome-keyring.h:174)
[-Wdeprecated-declarations]
 gnome_keyring_found_list_free(found_list);
 ^
keyring.c: In function 'set_password':
keyring.c:87:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:90:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:94:5: warning: 'gnome_keyring_item_create_sync' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:340): Use
'secret_item_create_sync' instead [-Wdeprecated-declarations]
 result = gnome_keyring_item_create_sync(NULL,
 ^
keyring.c:101:5: warning: 'gnome_keyring_attribute_list_free' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:155): Use
'g_hash_table_unref' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_free(attributes);
 ^
  CCLD gb.desktop.gnome.keyring.la


make[4]: Entering directory '/home/ian/Downloads/gambas3-3.6.0/gb.jit/src'
  CXX  gb_jit_la-jit_api.lo
  CXX  gb_jit_la-jit_codegen.lo
jit_codegen.cpp: In function 'llvm::Value* extract_value(llvm::Value*, int)':
jit_codegen.cpp:362:29: warning: narrowing conversion of 'index' from
'int' to 'unsigned int' inside { } [-Wnarrowing]
  unsigned int arr[] = {index};
 ^
jit_codegen.cpp: In function 'llvm::Value* insert_value(llvm::Value*,
llvm::Value*, int)':
jit_codegen.cpp:367:29: warning: narrowing conversion of 'index' from
'int' to 'unsigned int' inside { } [-Wnarrowing]
  unsigned int arr[] = {index};
 ^
jit_codegen.cpp: In function 'void
func_extern_call_variant_vararg(void*, void*, int, TYPE)':
jit_codegen.cpp:6655:33: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
  *(TYPE*)signature_string[nargs] = return_type;
 ^
jit_codegen.cpp:6705:44: warning: array subscript has type 'char'
[-Wchar-subscripts]
ft[i] = extern_types[signature_string[i]];
^
In file included from jit_codegen.cpp:5060:0:
jit_codegen_conv.h: In function 'llvm::Value*
JIT_conv_to_variant(Expression*, llvm::Value*, bool, bool*)':
jit_codegen_conv.h:93:36: warning: 'data' may be used uninitialized in
this function [-Wmaybe-uninitialized]
ret = insert_value(ret, data, 1);
^
jit_codegen.cpp: In member function 'virtual llvm::Value*
EqExpression::codegen_get_value()':
jit_codegen.cpp:3894:29: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]
   push_value(ret, T_BOOLEAN);
 ^
jit_codegen.cpp: In member function 'virtual llvm::Value*
NotExpression::codegen_get_value()':
jit_codegen.cpp:3929:30: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]
push_value(ret, T_BOOLEAN);
  ^
jit_codegen.cpp: In member function 'virtual llvm::Value*
LessExpression::codegen_get_value()':
jit_codegen.cpp:4001:30: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]

Re: [Gambas-user] Pre-release of Gambas 3.6 (2)

2014-10-13 Thread Ian Haywood
compiles but lots of warnings on Debian testing

make[4]: Entering directory
'/home/ian/Downloads/gambas3-3.6.0/gb.desktop.gnome.keyring/src'
  CC   gb_desktop_gnome_keyring_la-main.lo
  CC   gb_desktop_gnome_keyring_la-keyring.lo
keyring.c: In function 'get_password':
keyring.c:50:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:53:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:57:5: warning: 'gnome_keyring_find_items_sync' is deprecated
(declared at /usr/include/gnome-keyring-1/gnome-keyring.h:321): Use
'secret_service_search_sync' instead [-Wdeprecated-declarations]
 result = gnome_keyring_find_items_sync(GNOME_KEYRING_ITEM_GENERIC_SECRET,
 ^
keyring.c:60:5: warning: 'gnome_keyring_attribute_list_free' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:155): Use
'g_hash_table_unref' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_free(attributes);
 ^
keyring.c:74:5: warning: 'gnome_keyring_found_list_free' is deprecated
(declared at /usr/include/gnome-keyring-1/gnome-keyring.h:174)
[-Wdeprecated-declarations]
 gnome_keyring_found_list_free(found_list);
 ^
keyring.c: In function 'set_password':
keyring.c:87:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:90:5: warning: 'gnome_keyring_attribute_list_append_string'
is deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:145): Use
'g_hash_table_replace' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_append_string(attributes,
 ^
keyring.c:94:5: warning: 'gnome_keyring_item_create_sync' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:340): Use
'secret_item_create_sync' instead [-Wdeprecated-declarations]
 result = gnome_keyring_item_create_sync(NULL,
 ^
keyring.c:101:5: warning: 'gnome_keyring_attribute_list_free' is
deprecated (declared at
/usr/include/gnome-keyring-1/gnome-keyring.h:155): Use
'g_hash_table_unref' instead [-Wdeprecated-declarations]
 gnome_keyring_attribute_list_free(attributes);
 ^
  CCLD gb.desktop.gnome.keyring.la


make[4]: Entering directory '/home/ian/Downloads/gambas3-3.6.0/gb.jit/src'
  CXX  gb_jit_la-jit_api.lo
  CXX  gb_jit_la-jit_codegen.lo
jit_codegen.cpp: In function 'llvm::Value* extract_value(llvm::Value*, int)':
jit_codegen.cpp:362:29: warning: narrowing conversion of 'index' from
'int' to 'unsigned int' inside { } [-Wnarrowing]
  unsigned int arr[] = {index};
 ^
jit_codegen.cpp: In function 'llvm::Value* insert_value(llvm::Value*,
llvm::Value*, int)':
jit_codegen.cpp:367:29: warning: narrowing conversion of 'index' from
'int' to 'unsigned int' inside { } [-Wnarrowing]
  unsigned int arr[] = {index};
 ^
jit_codegen.cpp: In function 'void
func_extern_call_variant_vararg(void*, void*, int, TYPE)':
jit_codegen.cpp:6655:33: warning: dereferencing type-punned pointer
will break strict-aliasing rules [-Wstrict-aliasing]
  *(TYPE*)signature_string[nargs] = return_type;
 ^
jit_codegen.cpp:6705:44: warning: array subscript has type 'char'
[-Wchar-subscripts]
ft[i] = extern_types[signature_string[i]];
^
In file included from jit_codegen.cpp:5060:0:
jit_codegen_conv.h: In function 'llvm::Value*
JIT_conv_to_variant(Expression*, llvm::Value*, bool, bool*)':
jit_codegen_conv.h:93:36: warning: 'data' may be used uninitialized in
this function [-Wmaybe-uninitialized]
ret = insert_value(ret, data, 1);
^
jit_codegen.cpp: In member function 'virtual llvm::Value*
EqExpression::codegen_get_value()':
jit_codegen.cpp:3894:29: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]
   push_value(ret, T_BOOLEAN);
 ^
jit_codegen.cpp: In member function 'virtual llvm::Value*
NotExpression::codegen_get_value()':
jit_codegen.cpp:3929:30: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]
push_value(ret, T_BOOLEAN);
  ^
jit_codegen.cpp: In member function 'virtual llvm::Value*
LessExpression::codegen_get_value()':
jit_codegen.cpp:4001:30: warning: 'ret' may be used uninitialized in
this function [-Wmaybe-uninitialized]

Re: [Gambas-user] ...And what is planned for Gambas 3.7

2014-09-15 Thread Ian Haywood
On Tue, Sep 16, 2014 at 10:03 AM, Benoît Minisini
gam...@users.sourceforge.net wrote:

 7) A Gambas program may depend on other programs in the repository. That
 way libraries will be able to be put in the repository too.
currently libraries must sit in a directory on $PATH. On most systems
all directories
in $PATH are not user-writable.
Therefore a user cannot install libraries that compiled programs can use AFAICT

I've proposed this before I know: a separate environment variable for
directories to search, presumably GAMBASPATH (like PYTHONPATH, or
Java's CLASSPATH)

This would also help with my .project/.startup svn issue (which can't
be fixed by Gambas directly as there is a lot of non-Gambas stuff in
our repo)

Ian

--
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce.
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] libraries with svn

2014-08-13 Thread Ian Haywood
Richard Terry and I have run into a problem
Our project uses one library (and may use more as we hive up the
project into logical components)
But, it will be in different locations on our systems (mine in
/home/ian/easygp/base.gambas, his funnily enough is
/home/richard/easygp/base.gambas, or similar), and obviously our third
developer (who  isn't called richard or ian) will have the same
problem.

each time one of us updates svn, the .project file is changed to ur
setting, thus breaking the package for the other one.

Is there a way to exclude changes to the project file from svn
updates? (I know this can be done through configuring svn manually,
which I will do, but is their an official gambas solution?)

Ian

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3.5.4 and the Stable PPA

2014-07-15 Thread Ian Haywood
On Wed, Jul 16, 2014 at 3:27 AM, Caveat gam...@caveat.demon.co.uk wrote:
 I have Ubuntu here, was hoping someone else would volunteer first so I
 didn't have to... :-D

 I haven't packaged before but know my way around bash scripts, svn, git
 and the like.
start with the debian packaging guidelines to get an idea of how the
system works in general. https://wiki.debian.org/IntroDebianPackaging
Next, download the debian 3.5.4 packages in sid.
https://packages.debian.org/source/sid/gambas3 [look at the bottom of the page]

These debian packages will compile as-is on later versions of ubuntu,
all you will need to do is change the name of the target distro in
debian/changelog from unstable to raring, quantic or whatever.
Your problem is going to be the older versions, some gambas3
subpackages [gb.jit, gb.media, possibly a couple of others] just won't
compile as the relevant libraries are too old. You will need to
produce versions of gambas3 that don't have those subpackages.

[as an aside, this is why I've never bothered producing a version for
debian stable, lots of stuff won't compile and so the reality is most
debian people who want to run an up-to-date gambas will need to
upgrade their whole system anyway]


Ian

--
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3.5.4 and the Stable PPA

2014-07-12 Thread Ian Haywood
On Sat, Jul 12, 2014 at 3:38 PM, Sebastian Kulesz sebi...@gmail.com wrote:

 The thing is, I don't have ubuntu installed in my computer as i don't need
 it to manage the Daily Builds PPA. The problem arises when trying to push
 Gambas 3.5.4 to the Stable PPA using the same method i'm using for the
 Daily Builds. To do this, i have to bisect 3 repositories to find the
 revision which corresponds to the release of the 5.* branch. Right now,
surely if it's the official repository you can use the official
tarball? This is how we do the debian
unstable releases.
[the other option is to just use the debian unstable release and
relabel the target distro, it should
compile on most recent ubuntus as-is]
Hopefully in the next version of ubuntu the version will be up-to-date
so the kendek PPA won't be needed for that version
(it will still be for older ones I know)

Ian

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] loading PDF widget very slow

2014-06-12 Thread Ian Haywood
I've noticed that suddenyl loading any PDF became very slow (1-15
seconds to load)
the PDFs are small and no my local drive, so should load almost immediately.

then I discovered chanigng my default printer fixed it

using strace, this is what's happening while I wait for the PDF to load

connect(34, {sa_family=AF_INET, sin_port=htons(631),
sin_addr=inet_addr(192.168.1.8)}, 16) = -1 EINPROGRESS (Operation
now in progress)
fcntl64(34, F_SETFL, O_RDWR)= 0
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)
poll([{fd=34, events=POLLIN|POLLOUT}], 1, 250) = 0 (Timeout)

my interpretation is that it's trying to talk to the printer on
192.168.1.8: that's my printer at home, not available when I'm at work

but the real question is: why does the PDF widget even care? I don't
want to print, just look at the PDF

--
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing  Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: libraries and locations: feature request

2014-06-06 Thread Ian Haywood
I've started using gambas libraries to break my projecty up into more
manageable components.

My understanding is libraries must be in the same directory as the
compiled executable when deployed: so that's /usr/bin

The debian packaging system complains that I don't have a manpage for
each of my libraries: but only some of them will be run directly, some
are only for use as gambas libraries.

I can see a collision with debian policy: libraries should go in
/usr/lib, ideally /usr/lib/gambas3/ or something like that.

Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries?

Ian

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Accessing the nth item in a collection

2014-06-04 Thread Ian Haywood
On Wed, Jun 4, 2014 at 9:59 PM, Tobias Boege tabo...@gmail.com wrote:

 Oh, I just saw the added to bit. That's not possible with AvlTree and also
 won't be with Collection.

 Then I suppose that you create a custom Collection class and make it record
 the first and last items added. For the general case of the n-th added item,
 you really need to sort your keys by the point in time they're inserted and
 that's plainly an array using the Add() method.
My first question is why not just use an Array full-stop: by
definition that is the structure for accessing
items by order.

 Generally, if you want to have the same data *sorted* in different ways (and
 you want sorted because otherwise you would need to loop through the data
 which you don't want), it sounds plausible that you need the data twice, but
 in diffent containers and sorted differently.
Correct.
if the things in question are Objects of any type, then internally
what's being held in the Array or Collection are pointers
to the objects, so extra memory use is minimal. In this case IMHO the
most graceful  and efficient solution is to have both an Array and a
Collection of the same objects.

If that doesn't work then I'd have a String[] holding the keys to the
collection, this means two lookups so a bit of a speed penalty (but
Gambas is fast at this stuff, I doubt you'd notice)

Ian

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] libraries and locations: feature request

2014-06-03 Thread Ian Haywood
I've started using gambas libraries to break my projecty up into more
manageable components.

My understanding is libraries must be in the same directory as the
compiled executable when deployed: so that's /usr/bin

The debian packaging system complains that I don't have a manpage for
each of my libraries: but only some of them will be run directly, some
are only for use as gambas libraries.

I can see a collision with debian policy: libraries should go in
/usr/lib, ideally /usr/lib/gambas3/ or something like that.

Can we have gambas look in /usr/lib/gambas3 as well as /usr/bin for libraries?

Ian

--
Learn Graph Databases - Download FREE O'Reilly Book
Graph Databases is the definitive new guide to graph databases and their 
applications. Written by three acclaimed leaders in the field, 
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas IDE in open project scanning entire home directory

2014-05-24 Thread Ian Haywood
On Sun, May 25, 2014 at 9:39 AM, Benoît Minisini
gam...@users.sourceforge.net wrote:
 Le 25/05/2014 00:48, Ian Haywood a écrit :

 The only recursion that occurs is after opening a project: the project
 directory is recursively browsed, to detect all project files.

 Otherwise, I have no idea why /home/ian/debian is browsed. When you say
 at startup, does it mean before opening the project open dialog or
 during or after?
/home/ian/debian/ got fully browsed as I opened the Open Project...
dialog, but *before* I selected any project

I then clicked on /home/ian: and immediately my full home directory
got scanned, again before any projects were loaded.
dchProject.Icon is called for each directory and file by the DirChooser.

Ian

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling Gambas on an Allwinner A10 based system

2014-05-21 Thread Ian Haywood
On Wed, May 21, 2014 at 9:25 AM, Jussi Lahtinen
jussi.lahti...@gmail.com wrote:

 I've been trying to compile Gambas on a development board that uses the
 Allwinner A10 SOC.  I know there is a build for the Raspberry PI, so it
 should be doable.
I use a solidrun cubox (a tiny Israeli company making even tinier
computers), which is also based
on an ARM SoC. I can't help you on OpenGL (and there doesn't seem much
point on ARM) but I have got webkit and the rest
of gambas running fine.

From your logfile the punchline is

configure: WARNING: Unable to met pkg-config requirement: QtWebKit = 4.5.0
configure: WARNING: gb.qt4.webkit is disabled

which means you don't have the right development package installed,
it's called libwebkit-dev on
debian-based distros, dunno about the others.

If you are on a debian-based system, try upgrading to the latest
testing and then install gambas directly
('apt-get install gambas3), this *should* work as there will be
pre-compiled ARM binaries for gambas in the Debian repos.

Ian

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Compiling Gambas on an Allwinner A10 based system

2014-05-21 Thread Ian Haywood
On Thu, May 22, 2014 at 3:53 AM, Bruce Cunningham
bcunning...@sportif.com wrote:
 Ian,

 Some details about the OS:
 Distribution ID: Linaro
 Description: Linaro 12.11
 Release: 12.11
 Codename: precise
ok, it's an old ubuntu derivative
have a look at kendek's PPA
(https://launchpad.net/~nemh/+archive/gambas3), it includes armhf
builds.

As a very general comment: gambas is a big complex program, compiling
it is not easy even for seasoned Linux users. If you are new to Linux
you are probably going to have a much better experience with
pre-compiled binaries than jumping straight into compiling source.
Ian

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.db.postgresql – These Components Are Disabled

2014-05-19 Thread Ian Haywood
On Mon, May 19, 2014 at 6:42 PM, gian bago...@libero.it wrote:
 Jussi, thanks for answer,
 Il 19/05/2014 01:02, Jussi Lahtinen ha scritto:
 You can ignore those if you are not going to use them. They are not
 mandatory.
 On Sun, May 18, 2014 at 9:38 PM, gian bago...@libero.it wrote:

 Hi all,

 compiling Gambas3 following the instructions Gambas Documentation I
 received this
 result:

 || THESE COMPONENTS ARE DISABLED:

 || - gb.db.postgresql
Some key header files have moved to package postgresql-server-dev-9.3
You also need to apply a patch so gambas can find them

Ian


find_postgresql_headers
Description: Binary data
--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Try;If Error on mutable classes

2014-05-12 Thread Ian Haywood
On Mon, May 12, 2014 at 11:07 AM, B Bruen bbr...@paddys-hill.net wrote:
 OK,this has me beat.

 So, we try(sic) as follows:
 1:  Try MyObject.MissingMethod(whatever)
 2:  If Error then
 3:  Error Subst(1\nERR: 2 (3)\n4\n1\n, String$(40, -), 
 Error.Text, Error.Code, Error.Backtrace.Join(\n))
 4:  Endif

 Line  3 fails with a null (Error) object.

 There seems to be two problems here.
 1) Why is the Error instance a null, and
are you sure the whole Error is Null
is it just Error.Backtrace?
which isn't set by the TRY form (it is when you handle errors using CATCH)
 2) (Harder) If, when trying to invoke an unknown method in a classifier then 
 should not the interpreter raise the normal error  Unknown Symbol  blah blah
when I'm not sure if a method exists on a Form I use Object.Call which
seems to behave a bit better in this circumstance.

Ian

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Ubuntu 14.04 update and Gambas executables

2014-04-30 Thread Ian Haywood
On Thu, May 1, 2014 at 7:46 AM, Keith Clark keithcl...@k-wbookworm.com wrote:
 But I did do a fresh install from the Ubuntu repos of Gambas 3.  Should
 that not have done the same thing?
no, what's in the standard ubuntu repos is very old (3.1.1), you need
to use kendek's PPA as described.
your error is probably that the bytecode is too new for the 3.1.1
interpreter, you would need to run the programs from a terminal to be
sure.

Ian

--
Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.  Get 
unparalleled scalability from the best Selenium testing platform available.
Simple to use. Nothing to install. Get started now for free.
http://p.sf.net/sfu/SauceLabs
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Install Gambas 3 on Raspbian instruction in Gambas wiki

2014-04-09 Thread Ian Haywood
On Thu, Apr 10, 2014 at 7:35 AM, Willy Raets wi...@earthshipbelgium.be wrote:
 Hi All,

 Since I'm now the owner of a Raspberry Pi running Raspbian I wrote some
 short instructions for installing Gambas3 on Raspbian.

 http://gambaswiki.org/wiki/install/raspbian

 Also added Raspbian to the index of distributions.
the current jessie packages are a bit buggy, the IDE can crash.
3.5.2-2 is slowly percolating through the debian system and should be
reasonably stable.

have a look at https://wiki.debian.org/AptPreferences, it explains how
to grab packages from a later release but leave the rest as-is.

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Precision immediately lost when assigning value to type Single structure property

2014-04-09 Thread Ian Haywood
On Thu, Apr 10, 2014 at 2:43 PM, Kevin Fishburne
kevinfishbu...@eightvirtues.com wrote:
 I have an array (Plan) of a structure (PlanStructure) which contains
 several other structures (PlanPortalStructure, etc.):

 Plan[p].Portal[Index].Orientation = 180.2


 the value is assigned as 180.169.

 Any idea why this is happening?Seems strange that explicitly setting a
 type Single to a value would immediately cause precision to be lost;
 maybe it has to do with a structure being embedded in another structure?
i doubt structures are the issue. floating point values are stored in
binary internally so there is a translation between decimal for humans
and binary which imparts a slight rounding error
can you try Double: this won't fix the problem but will reduce it at a
cost of more RAM

if you need 100% decimal accuracy (it's usually only high-end
financial stuff where you do), then look at gb.gmp component. Again it
will cost you in RAM and speed.

Ian

--
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test  Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] autogenerated files (was: Update of autoconf macros in revision #6230)

2014-04-06 Thread Ian Haywood
On Sat, Apr 5, 2014 at 9:25 PM, Benoît Minisini
gam...@users.sourceforge.net wrote:

 Remember that you have to run ./reconf-all to regenerate all
 configuration script from the new autoconf files.
Would it be possible for the source tarballs to not contain files
autogenerated by reconf-all (such as the Makefile.in and various
copies of the m4 macros). This would help with building on Debian.

Ian

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] running gambas3 on ARM

2014-03-28 Thread Ian Haywood
I've been trying to run gambas3 on a ARM processor
very basic text-only programs will work
running anything graphical crashes in the Qt library.

ian@debian-imx6:~/gambas3-3.5.2/main/gbx$ gdb gbr3
GNU gdb (GDB) 7.6.2 (Debian 7.6.2-1)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as arm-linux-gnueabihf.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /home/ian/gambas3-3.5.2/main/gbx/gbx3...done.
(gdb) run /usr/bin/gambas3.gambas
Starting program: /home/ian/gambas3-3.5.2/main/gbx/gbr3 /usr/bin/gambas3.gambas
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/arm-linux-gnueabihf/libthread_db.so.1.

Program received signal SIGSEGV, Segmentation fault.
0x2ab63936 in __GI___pthread_mutex_lock (mutex=0x11) at pthread_mutex_lock.c:66
66pthread_mutex_lock.c: No such file or directory.
(gdb) bt
#0  0x2ab63936 in __GI___pthread_mutex_lock (mutex=0x11) at
pthread_mutex_lock.c:66
#1  0x2ca9dc4a in XrmQGetResource () from
/usr/lib/arm-linux-gnueabihf/libX11.so.6
#2  0x2ca884c2 in XGetDefault () from /usr/lib/arm-linux-gnueabihf/libX11.so.6
#3  0x2fdf85d8 in _XcursorGetDisplayInfo () from
/usr/lib/arm-linux-gnueabihf/libXcursor.so.1
#4  0x2fdf86b6 in XcursorGetDefaultSize () from
/usr/lib/arm-linux-gnueabihf/libXcursor.so.1
#5  0x2fdf9c6e in XcursorLibraryLoadCursor () from
/usr/lib/arm-linux-gnueabihf/libXcursor.so.1
#6  0x2c020af4 in QCursorData::update (this=0x1754c8) at
kernel/qcursor_x11.cpp:294
#7  0x2c020f66 in QCursor::handle (this=this@entry=0x7effebf4) at
kernel/qcursor_x11.cpp:148
#8  0x2c028af0 in qt_x11_enforce_cursor (w=optimized out,
w@entry=0x261508, force=force@entry=false) at
kernel/qwidget_x11.cpp:333
#9  0x2c028b50 in qt_x11_enforce_cursor (w=w@entry=0x261508) at
kernel/qwidget_x11.cpp:347
#10 0x2c02b970 in QWidgetPrivate::create_sys
(this=this@entry=0x261520, window=window@entry=0,
initializeWindow=optimized out, initializeWindow@entry=true,
destroyOldWindow=destroyOldWindow@entry=true) at kernel/qwidget_x11.cpp:899
#11 0x2bff9cca in QWidget::create (this=0x261508,
window=window@entry=0, initializeWindow=initializeWindow@entry=true,
destroyOldWindow=destroyOldWindow@entry=true)
at kernel/qwidget.cpp:1513
#12 0x2bffa150 in QWidgetPrivate::createWinId (this=optimized out,
winid=winid@entry=0) at kernel/qwidget.cpp:2576
#13 0x2bffa178 in QWidget::createWinId (this=optimized out) at
kernel/qwidget.cpp:2600
#14 0x2c01e332 in setupOwner () at kernel/qclipboard_x11.cpp:131
#15 0x2c01e51c in QClipboard::QClipboard (this=0x2459b0, parent=0x0)
at kernel/qclipboard_x11.cpp:458
#16 0x2bfc931c in QApplication::clipboard () at kernel/qapplication.cpp:3301
#17 0x2bb356c4 in MyApplication::initClipboard () at main.cpp:335
#18 0x2bb35912 in QT_Init () at main.cpp:663
#19 0x2bb3596c in hook_main (argc=0x7efff004, argv=0x7efff000) at main.cpp:750
#20 0xb37a in main (argc=1, argv=0x7efff4d4) at gbx.c:352

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Error.Backtrace

2014-01-16 Thread Ian Haywood
I have discovered that Error.Backtrace is not always correctly set.
if an error occurs in a TRY expression Error.Backtrace remains with the
previous error.
Error.Where and Error.Text are set correctly.

This caused us a lot of problems as we log Error.backtrace to find
errors on user systems.

I attach a mini-project that demonstrates this.


backtrace-lies-0.0.1.tar.gz
Description: GNU Zip compressed data


signature.asc
Description: OpenPGP digital signature
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Error.Backtrace

2014-01-16 Thread Ian Haywood
On 17/01/14 10:11, Benoît Minisini wrote:
 Le 16/01/2014 23:12, Ian Haywood a écrit :

 For a TRY that does not call functions, it is not computed, so you get 
 the previous stack backtrace.
not computing it is OK (as the combination of Error.Text and Error.Where
gives
us all the information anyway). The problem is leaving old data in
there, there is no way to detect this is bogus data and leads to many
hours trying to debug the wrong bit of code (our project has 200k SLOC
so we need to know where to look!)
Surely it wouldn't slow performance to set Error.Backtrace to NULL?

 I admit it is actually a bit weird, but I don't understand why it is a 
 problem. You should use TRY when you really don't care with the error.
Hmm, because Catch only operates at the level of a whole function we do use
TRY and test for errors a fair bit.

Ian




--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] debian repository: another try

2014-01-05 Thread Ian Haywood
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I have had another go at a repository for debian packages

add the following lines to /etc/apt/sources.list

deb ftp://ozdocit.org/pub/ gambas3 main
deb-src ftp://ozdocit.org/pub/ gambas3 main

it contains version 3.5.1-1.1, which has a couple of bugfixes on the
version currently in debian (3.5.1-1)
please let me know if there are any problems

builds for i386 and amd64 are available.

Ian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFSyf/eKPy8UudQZS4RAoc6AJ9DNSTrYDHzRKbDmNYQc2eTR1Jn4ACfY7kk
7PWUhQDUVk8Ey2C1PJrF41U=
=OpNc
-END PGP SIGNATURE-

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] stock icons

2013-12-15 Thread Ian Haywood
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

A user of our program is getting this error.

16/12/2013 10:29:11 [ERROR] Invalid object
16/12/2013 10:29:11 [ERROR] _DefaultStock.LoadImage.14
16/12/2013 10:29:11 [ERROR] Stock._get.507

the offending line of code is this:

If Message.warning(smsg, Yes, No) = 1 Then

Looks like Gambas can't find the right icon for the Warning dialog
box, presumably it's not installed correctly.

I can't reproduce it myself: works fine on my box.
Is there any way to know what icon file gambas is looking for?

as a feature request: could gambas fail more gracefully: i.e. not show
the icon and produce a warning message, instead of crashing completely?

Ian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFSrl2+KPy8UudQZS4RAlTlAKCLAr4XlNUT05u/xSx1Ri1PIIP2VACgnVl0
t7RPoL7YNa7fNR12D5kdego=
=SjcW
-END PGP SIGNATURE-

--
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET,  PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] The problem with gb.gui, gb.gui.opengl, and gb.desktop.gnome

2013-10-31 Thread Ian Haywood
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 31/10/13 19:01, Benoît Minisini wrote:

 3) When making a package of a project named 'foo' that depends on 
 gb.gui, the IDE wizard will generate 'foo.deb' (I omit the version
  numbers for the example) and two more packages: 'foo-kde-support'
 and 'foo-gnome-support'. 'foo-kde-support' will depend on 'foo' and
  'gambas3-kde-support'. 'foo-gnome-support'... well you can guess.
 
 4) No explicit dependency on 'gb.gui', 'gb.gui.opengl' then.
I don't think this is necessary.
if gambas3-gb-gui depends on gambas3-gb-gtk OR gambas3-gb-qt4, apt-get
will not pick one at random [which is what I think Krisztian was
saying]: it will pick the one that can be installed according to their
dependencies: gambas3-gb-gtk depends on the GTK libraries and
gambas3-gb-qt4 depends on the Qt4 libraries.

I will compile some packages with this and run some experiments to see
if this does actually work.

Ian
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iD8DBQFScx+JKPy8UudQZS4RAnJKAJ9OyHBdMhEQ67AcPzC2b1qEkXs0ogCghGMq
9MWG69dRnrBvm0q0YCax2lI=
=akLN
-END PGP SIGNATURE-

--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] WIP Debian packages of Gambas

2013-10-30 Thread Ian Haywood
On 30/10/13 01:14, Kende Krisztián wrote:
 
 W: gambas3-gb-net-pop3: spelling-error-in-description allows to allows
 one to
 W: gambas3-gb-mime: spelling-error-in-description allows to allows one to
 W: gambas3-gb-ncurses: spelling-error-in-description allows to allows one
 to
 Said that u write and spell so bad as PICCORO write english
 
 No.
 
 gambas3-gb-net-pop3: POP3
 gambas3-gb-mime: MIME
 gambas3-gb-ncurses: NCurses
 
 How can these words to say in English? Mr. slang and many mistyped words 
 writer...
I have fixed the descriptions in the Debian version to fit standard
English grammar, please feel free to use those.
Now the only lintian errors are the hardening-no-relro stuff that I
think is a lintian bug anyway.

Ian




signature.asc
Description: OpenPGP digital signature
--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] WIP Debian packages of Gambas

2013-10-29 Thread Ian Haywood
On Tue, Oct 29, 2013 at 12:44 AM, PICCORO McKAY Lenz
mckaygerh...@gmail.com wrote:
 From: Ian Haywood ihaywo...@gmail.com

 NOW must search and revise ALL files and sure for a right header of
 license, and specified in the copyrithg file, this are the most
 important task before uploading, if not some debian mantainers see
 that and made and wall for uploading
I'm reasonably sure the copyright file covers all components not
written by Benoit.
If you want to go through every file and check, please be my guest :-)

Ian

--
Android is increasing in popularity, but the open development platform that
developers love is also attractive to malware creators. Download this white
paper to learn more about secure code signing practices that can help keep
Android apps secure.
http://pubads.g.doubleclick.net/gampad/clk?id=65839951iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Fwd: Specifications for Gambas 3

2013-10-27 Thread Ian Haywood
On 23/10/13 23:15, Kende Krisztián wrote:
 Hi

 I have read the How To Package Gambas document
 (http://www.gambasdoc.org/help/howto/package?v3#t2) and some things I
 do not understand:

 The runtime package contain the gb.gui component, but gambas3-runtime
 is not depend from gambas3-gb-gtk or gambas3-gb-qt4. Gb.gui does not
 work without them.

[WARNING: Debian packager discussion coming up, look away if you are
easily offended]

it is possible to use | in the Depends: field to make a package depend
on one OR another package, so you could do gambas3-gb-gtk | gambas3-gb-qt4


 Gambas3-gb-desktop-gnome package is depend from gambas3-gb-desktop, but
 vice versa is not true (in other words, the previous contents are not
 part of the latter). If use gb.desktop component on GNOME desktop, the
 following error message comes up: Cannot load component
 'gb.desktop.gnome': cannot find component
is there a gambas3-gb-desktop-kde? I didn't think so, if but there is
you can use the same trick
If not I'd pick some kde package that represents the desktop as use this
as the other half of the | clause, so you get the
gambas3-gb-desktop-gnome if KDE isn't installed.

Ian


signature.asc
Description: PGP signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas self-extracting installer (4)

2013-10-27 Thread Ian Haywood
On Sunday, October 27, 2013, Benoit Minisini
gam...@users.sourceforge.net mailto:gam...@users.sourceforge.net wrote:
 But I don't think it's a good idea to ask for the root or sudo password
 to installed Gambas package, for security reasons (can you really trust
 that self-extracting installer?)

 Instead, I think I will just tell the user which packages he must
 install himself before being able to complete the installation.

An installer without root access doesn't seem that useful IMHO as it
would end up just displaying a long list of complex commands to enter
into a terminal.
Most people using it wouldn't understand the commands (otherwise they
wouldn't need the installer) so from a security point of view you gain
nothing by making them cut and paste into a terminal window - they still
have to trust that you haven't embedded a rm -f / in there.
 I suggest detecting gksu or kdesu on the system and using those, this
means your code doesn't have to handle the root password.

 Moreover, I will try to provide the installed program with all needed
 Gambas components inside. So, provided that the dependencies of these
 components are already installed, nothing will need to be installed.
If you can automatically install whatever library you might as well
install its gambas binding as a package too.

 For security reasons, maybe this packager should be able to install the
 program locally only.
I don't think installing locally is a good idea or particularly useful
IMHO. In practice you will almost always need root access to install
some dependency, so you might as well install the program itself the
normal way in /usr/bin while you're at it.

Ian
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Official release of Gambas 3.5

2013-10-27 Thread Ian Haywood
On 26/10/13 01:37, PICCORO McKAY Lenz wrote:

 rejected the petition, there are two main objetives in debian package:
 license policy and lintian errors/messages
Kendek's changes up to 3.4.2 have been
backported into the debian packages
[one of the fixes to debian/copyright is to make sure kendek is
acknowledged!]

The only problem remaining is manpages for gbs3 and gbw3: they exist but
are not being installed properly for some reason

Ian


signature.asc
Description: PGP signature
--
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register 
http://pubads.g.doubleclick.net/gampad/clk?id=60135991iu=/4140/ostg.clktrk___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] leaving .ShowDialog() via an exception can crash Qt

2013-06-08 Thread Ian Haywood
this is a contrived example in which Window.ShowDialog generates an
exception which is then caught by the calling code, this in turn makes
Qt crash with signal 11
I enclose the gdb stacktrace.

In my program I fixed it by catching and managing the error inside the
form on which ShowModal is called, so ShowDialog returns an integer to
signify the error condition, not an exception.

Not sure whether this is worth fixing as it is admittedly a bizarre
way of dealing with errors: would be good if it can be a gambas error
instead of a signal 11
at least a warning in the docs that dialog boxes must manage their own
exceptions

Ian

(gdb) run
Starting program: /usr/bin/gbx3 
[Thread debugging using libthread_db enabled]
Using host libthread_db library /lib/x86_64-linux-gnu/libthread_db.so.1.
QCoreApplication::exec: The event loop is already running

Program received signal SIGSEGV, Segmentation fault.
0x74aead54 in QEventLoop::exit(int) () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
(gdb) bt
#0  0x74aead54 in QEventLoop::exit(int) () from
/usr/lib/x86_64-linux-gnu/libQtCore.so.4
#1  0x75db13ac in ?? () from /usr/lib/gambas3/gb.qt4.so
#2  0x7505f4ee in QWidget::event(QEvent*) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x7500e894 in QApplicationPrivate::notify_helper(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#4  0x75013713 in QApplication::notify(QObject*, QEvent*) ()
from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#5  0x74aebe9c in QCoreApplication::notifyInternal(QObject*,
QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x7505924d in
QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) () from
/usr/lib/x86_64-linux-gnu/libQtGui.so.4
#7  0x75dafb2f in ?? () from /usr/lib/gambas3/gb.qt4.so
#8  0x75db1293 in ?? () from /usr/lib/gambas3/gb.qt4.so
#9  0x75da65fc in ?? () from /usr/lib/gambas3/gb.qt4.so
#10 0x75da7048 in ?? () from /usr/lib/gambas3/gb.qt4.so
#11 0x004047eb in ?? ()
#12 0x7711776d in __libc_start_main (main=0x404189, argc=2,
ubp_av=0x7fffe2d8, init=optimised out, fini=optimised out,
rtld_fini=optimised out,
stack_end=0x7fffe2c8) at libc-start.c:226
#13 0x004048e9 in ?? ()
#14 0x7fffe2c8 in ?? ()
#15 0x001c in ?? ()
#16 0x0002 in ?? ()
#17 0x00665e50 in ?? ()
#18 0x7fffe585 in ?? ()
#19 0x in ?? ()
(gdb) quit


test-qt-crash-0.0.1.tar.gz
Description: GNU Zip compressed data
--
How ServiceNow helps IT people transform IT departments:
1. A cloud service to automate IT design, transition and operations
2. Dashboards that offer high-level views of enterprise services
3. A single system of record for all IT processes
http://p.sf.net/sfu/servicenow-d2d-j___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New gb.crypt.openssl component

2013-05-25 Thread Ian Haywood
On Tue, May 21, 2013 at 7:58 AM, Tobias Boege tabo...@gmail.com wrote:
 Hi folks,

 seems to be the day of new components... I just committed a gb.crypt.openssl
 component to wrap the cryptographic functions in OpenSSL's libcrypto. The
 idea came actually from Sebastian in conjunction with his gambas-online
 project. But maybe it's useful to someone else.

This is useful, thanks

In your example code you stated there is no automatic way to convert
strings to hex. It is possible to do using a loop and the Hex$
function, like so:

Public Function String2Hex(s As String) As String

  Dim ret As String = 
  Dim i As Integer

  For i = 1 To Len(s)
ret = Hex$(Asc(s, i), 2)
  Next
  Return ret

End


Cheers,


Ian

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] couple of silly questions for Debian packaging

2013-05-02 Thread Ian Haywood
On Thu, May 2, 2013 at 12:49 PM, Sebastian Kulesz sebi...@gmail.com wrote:
\
 - gb.net.pop3: is this component written purely in Gambas or partially
 in C? where is it's source code? all I can find is the bytecode-compiled
 file /comp/src/gb.net.pop3/gb.net.pop3.gambas

 That component is written purely in Gambas
thanks for that: do you know where the source-code is?


 You can find the manpages here [0] at the bottom. They are not available in
 the svn repository though. They are Kendek's work, i just updated them a
 bit.
thanks again. I should take this opportunity to point out what I'm
doing overall is making
minor tweaks to Kendek's Ubuntu work.

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambas 3.4.1 Debian packaging

2013-05-02 Thread Ian Haywood

Ok, I have finally got Gambas compiling and building all packages on
Debian wheezy

They are available on a private repository, add the following to your
/etc/apt/sources.list

deb ftp://ozdocit.org/pub/easygp/ easygp main
deb-src ftp://ozdocit.org/pub/easygp/ easygp main

easygp is the project I am working on with Richard Terry, it is a
massive project and a reasonably good stress-test, however it doesn't
use every Gambas package, please report any problems.

Ian Haywood



signature.asc
Description: OpenPGP digital signature
--
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with 2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] couple of silly questions for Debian packaging

2013-05-01 Thread Ian Haywood
dear List

A couple of small questions to help with Debian packaging:

- gb.net.pop3: is this component written purely in Gambas or partially
in C? where is it's source code? all I can find is the bytecode-compiled
file /comp/src/gb.net.pop3/gb.net.pop3.gambas

- debian packager complains about executables gbs3 and gbw3 don't have
manpages (it's a Debian rule all executables have a manpage). I'm happy
to write them if someone can point me int the direction of some
documentation about what they do (presumably for scripts and webpages I
know, but how they work, command-line options, etc)

Ian



signature.asc
Description: OpenPGP digital signature
--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to stop Greedy constructors consuming parameters

2013-04-29 Thread Ian Haywood
On 30/04/13 00:34, Benoît Minisini wrote:

 If theses twwo arguments must be handled differently between classes, 
 then add a public method to handle them. Prefix its name with an 
 underscore, to indicate that it must not be called outside of the 
 implementation.
 
 ' Root class
 Public Sub _new(Source as String[], Name as String)
_Init(Source, Name)
 End
 
 ' Any child class
 Public Sub _Init(Source as String[], Name as String)
This is rule around underscores enforced by the compiler (a la Python)
or only a convention?

would you consider a Protected access type (like C++) instead?

Ian

--
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with 2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] compiling on Debian

2013-04-28 Thread Ian Haywood
I am currently trying to compile gambas on debian

it now sees to work better: whether this is due to fixes in gambas or
debian libraries being slightly less ancient and catching up with
gambas requirements, I'm not sure.

BUT
the file /usr/lib/gambas3/gb.qt4.gambas does not exist and the
existing Debian packaging scripts expect it (i.e. it used to exist
back when Gambas was last successfully packaged: 3.1.1)
gb.qt4.so and gb.qt4.component are generated.

is this a probem? or has the way native gambas components work changed?

Ian

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] compiling on Debian

2013-04-28 Thread Ian Haywood
On Mon, Apr 29, 2013 at 2:58 AM, Adrien Prokopowicz
adrien.prokopow...@gmail.com wrote:

 I remember that a small part of gb.qt4 and gb.gtk were written in gambas
 (the Action class I think), making it an hybrid component, so that's why a
 gb.qt4.gambas were generated.
 But since the 3.4 version, this class has been moved to the gb.gui.base
 component, and now gb.qt4 and gb.gtk are now completely made in C/C++, so
 that's may be why that file is not generated anymore.
Thankyou Adrien, that solves the puzzle.
It's relatively easy to amend the Debian packaging scripts so they
won't look for this file.
I just wanted to make sure it wasn't some problem with my compilation.

Ian

--
Try New Relic Now  We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app,  servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to stop Greedy constructors consuming parameters

2013-04-19 Thread Ian Haywood
On Sat, Apr 20, 2013 at 11:13 AM, Bruce bbr...@paddys-hill.net wrote:
 I have a deep hierarchy of classes, seven levels of specialisation so
 far and likely to grow.
wow.

 At level 4, 6 dummy and the 2 real parameters, i.e.
 hObj = New
 Level4Class(Null,Null,Null,Null,Null,Null,Source,Name)

 This is becoming very painful.

 Is there any way to turn off the way constructors consume parameters?
It's a core language design decision, so I doubt it.
Personally instead of using the official constructor _new I often
have a separate
Init( ) function which is called immediately after instantiation

foo = New MyClass()
foo.Init(someParameter)

Messy, but because .Init( ) is an ordinary function in the eyes of
the the Gambas compiler, ancestor
classes to not consume parameters in the same way, plus it is only
overridden in the hierarchy when required.

Unfortunately Gambas doesn't allow any change in function signatures,
so if you wanted an extra parameter in a descendant
constructor you would have to have an Init2 method which then calls
Me.Init()

Ian

--
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis  visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Regular expression searching

2013-04-03 Thread Ian Haywood
I have often missed in Gambas the ability to search through strings
using a regular expression and
provide a function to create replacements
Gambas doesn't have procedural pointers or closures, so it's
impossible to do it like in ruby/python/etc, but I've found the same
can be achieved using an iterator

IN the hope it is useful for others this is my module CRegex.

Here's an example, it turns the HTML tag quot; into alternating
opening (``) and closing ('') quotes as required by the LaTeX system

  r = New CRegex(quot;, s, Regexp.Caseless)
   flag = False
   For Each r
  If flag Then
 flag = False
 r.Set('') ' close quotes in LaTeX
  Else
 flag = True
 r.Set(``) ' open quotes
  Endif
   Next
   s = r.Subject


cRegex.class
Description: Binary data
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas on Debian!

2013-03-22 Thread Ian Haywood
On Fri, Mar 22, 2013 at 2:44 AM, Willy Raets wi...@earthshipbelgium.be wrote:
 Hi all,

 I have finally found a mail address to reach the guy responsible for the
 Gambas packages on Debain.
sorry wally, I suspect it's only me on the other end, I'm part of the
Debian packaging team
but I don't have the authority to upload new versions, you need to be
a Debian developer
for that.

The key blocker for me is actually getting Gambas to compile on
Debian, I confess I have
banged my head against that particular brick wall long enough, and
gone back to using Ubuntu.

If you can get it to compile, let me know how you did it and we can
find a Debian developer to
actually get it uploaded.

Ian

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] patch for setting directory on EXEC

2013-02-28 Thread Ian Haywood
On 23/02/13 23:09, Ian Haywood wrote:

 This patch basically makes EXEC respect the PWD environment variable:
 if PWD is set using the WITH keyword option to EXEC then
 this is the current directory for the process spawned by EXEC.
will this patch be accepted?
if not is there any other way to implement this functionality that would
be acceptable?

Ian


--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] patch for setting directory on EXEC

2013-02-23 Thread Ian Haywood
as part of my app, I run the LaTeX typesetting program via EXEC in Gambas

To cut a long story short, latex likes to be an a specific current
directory, which isn't possible in Gambas: EXEC always runs the in the
directory the interpreter was started in, Currently I use SHELL
instead and do something like cd the/directory/i/want ; latex
input.tex, but
this is inefficient (I have no other need of a subshell) and generally
feels kludgy.

This patch basically makes EXEC respect the PWD environment variable:
if PWD is set using the WITH keyword option to EXEC then
this is the current directory for the process spawned by EXEC.

Ian


gambas-pwd.diff
Description: Binary data
--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian repository

2012-11-24 Thread Ian Haywood
On Sun, Nov 25, 2012 at 10:17 AM, Sebastian Kulesz sebi...@gmail.com wrote:


 Well, don't ask me how, but i managed to compile every component except
 gb.media and gb.jit. gstreamer and llvm are available that those versions
 are too old. I had an issue installing gb.image.imlib because of a virtual
 package i had to look online (that prevented me from installing gb.sdl* and
 gb.v4l) but that solved everything worked.

 I might be able to build a repository by porting the daily builds ppa
 control files, let debuild detect the dependencies automatically (really, i
 lost track of them) and using reprepro [0] to build the structure.
 Screenshot attached.
I'm not sure building a separate repo is really that useful, people
might as well use the Ubuntu PPA for the appropriate version
(yes it's not recommended, neither is using a separate repo)

try downloading the sources for the latest debian version, copy
it and then change the files in debian/ as required to make it compile,
then send me the diff.

I can integrate it with some stuff I've already done (I got LLVM 3.1 working
so gb.jit does compile), and send on to the debian developers for inclusion.

Ian

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian repository

2012-11-24 Thread Ian Haywood
On Sun, Nov 25, 2012 at 2:02 PM, Sebastian Kulesz sebi...@gmail.com wrote:

 If i have enough time, tomorrow i will publish the definitive binary
 packages for Debian 6 so others can test them, and then move to Unstable.
please publish the source package too, and I will submit to the debian
contacts I have

Ian

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian repository

2012-11-23 Thread Ian Haywood
On Fri, Nov 23, 2012 at 6:47 AM, Sebastian Kulesz sebi...@gmail.com wrote:
 Hi there!!

 Yesterday I released a new version of a personal project. Luckily, it
 gained a lot of traction. Not so luckily, a lot of Debian users commented
 that they either had problems with apt complaining about gambas versions,
 or the interpreter complaining about the Bytecode too recent. error.

 I provided a PPA for Ubuntu users which solves everything for them, but
 Debian users are left in the dark. They have 2 options only, compile
 gambas3 or use the Ubuntu PPA version corresponding to
 it's Debian installation (NOT recommended at all). And those who don't know
 how to do any, will complain about the official packages spitting out
 errors because they are either wrongly packaged or too out of date. This
 has been like this for months and contacting a maintainer is nearly
 impossible. Besides, the mailing list for Gambas packagers is full of spam,
 so it seems nobody is watching it.
If you can get gambas to compile on a debian system (I have really struggled)
please let me know as this is the block to getting an update out.

the other option (which is what I do) is to compile your project on the debian
version, this prevents the bytecode too recent problem and creates a version
debian users can use.

remember the debian philosophy is a bit different and software
packages don't get updated
as other distros.

Ian

--
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Make form permanantly active

2012-10-17 Thread Ian Haywood
On Wed, Oct 17, 2012 at 6:04 PM, Gavin Reeve Frost grfr...@gmail.com wrote:
 OK since i cannot capture a key press outside of a form.

 Does anybody know if there is a way to make
 a form permanently active even if another application is
 being used like Firefox the form must remain active
 so that my key press is captured by the form. I only want one
 key to be captured by my form when Firefox is open the F12 key.

permanently active wouldn't be a lot of fun for your users because
they wouldn't be able to use any other apps.
Best option IMHO is to configure the  window manager to run a
particular command whenever
F12 is pressed. The command might have to be a gambas script that then
uses DBus to report back to your
application that the key has been pressed.

Ian

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] PostgreSQL multiple column problem

2012-10-17 Thread Ian Haywood
On Wed, Oct 17, 2012 at 7:32 AM, Markus Schatten markus.schat...@foi.hr wrote:


 queries. Yes, I could parse each query and rewrite it before
 executing, but this would be at least an ugly hack.
No, I think its your best solution
Maybe your users can just type in the where part of the query and
then you add the rest?

Ian

--
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] New component: gb.args

2012-10-16 Thread Ian Haywood
On Tue, Oct 16, 2012 at 11:06 AM, Benoît Minisini
gam...@users.sourceforge.net wrote:
 Hi,

 In the last revision, I added a new component 'gb.args', which replaces
 the unmaintained 'gb.option'. By the way, does anyone use 'gb.option'?
yep. Code can be moved across without too much work, but it creates a
problem as it means
we need to use the latest gambas, which is hard
(debian is still on 3.1, for example)

Is there any way to detect at runtime (or compile-time) which module
is available
so both can supported?
or can gb.option stay in the codebase for a little while (say six
months) to enable transition

Ian

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] error compiling gb.xml

2012-10-15 Thread Ian Haywood
On Mon, Oct 15, 2012 at 5:44 PM, Fabien Bodard gambas...@gmail.com wrote:
 2012/10/15 Ian Haywood ihayw...@iinet.net.au:
 On Mon, Oct 15, 2012 at 12:00 AM, Fabien Bodard gambas...@gmail.com wrote:
 You need Dev package. For libxml2
 Yes, I have it already, but because I am running on a 64-bit machine the 
 library
 is installed to /usr/lib/x86_64-linux-gnu/libxml2.a, but gambas insists
 on looking for where it would be on a 32-bit machine (/usr/lib/), but,
 for utterly mysterious reasons, only for this library, it finds all
 the others no problems.

 what is your distribution ?
debian wheezy

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] error compiling gb.jit

2012-10-14 Thread Ian Haywood
Hello

I am trying to compile gambas 3.3.3 on Debian wheezy
I have llvm-3.1-dev installed
compiler is g++ 4.4.5-1

any help appreciated.


Making all in gb.jit
make[3]: Entering directory `/home/ian/preserve/gambas3/gambas3/gb.jit'
/usr/bin/make  all-recursive
make[4]: Entering directory `/home/ian/preserve/gambas3/gambas3/gb.jit'
Making all in src
make[5]: Entering directory `/home/ian/preserve/gambas3/gambas3/gb.jit/src'
  CXXgb_jit_la-jit_api.lo
  CXXgb_jit_la-jit_codegen.lo
jit_codegen.cpp: In function 'llvm::Value*
get_cstring_from_addr(llvm::Value*)':
jit_codegen.cpp:723: error: expected primary-expression before '[' token
jit_codegen.cpp:723: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void finish_gosub_returns()':
jit_codegen.cpp:798: error: expected primary-expression before '[' token
jit_codegen.cpp:798: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void unref_string_no_nullcheck(llvm::Value*)':
jit_codegen.cpp:983: error: expected primary-expression before '[' token
jit_codegen.cpp:983: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void unref_string(llvm::Value*)':
jit_codegen.cpp:990: error: expected primary-expression before '[' token
jit_codegen.cpp:990: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void unref_object_no_nullcheck(llvm::Value*)':
jit_codegen.cpp:1012: error: expected primary-expression before '[' token
jit_codegen.cpp:1012: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void unref_object(llvm::Value*)':
jit_codegen.cpp:1019: error: expected primary-expression before '[' token
jit_codegen.cpp:1019: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void borrow_string(llvm::Value*)':
jit_codegen.cpp:1058: error: expected primary-expression before '[' token
jit_codegen.cpp:1058: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void borrow_object(llvm::Value*)':
jit_codegen.cpp:1074: error: expected primary-expression before '[' token
jit_codegen.cpp:1074: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void release(llvm::Value*, TYPE)':
jit_codegen.cpp:1090: error: expected primary-expression before '[' token
jit_codegen.cpp:1090: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void borrow(llvm::Value*, TYPE)':
jit_codegen.cpp:1104: error: expected primary-expression before '[' token
jit_codegen.cpp:1104: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'llvm::Value*
string_for_array_or_variant(llvm::Value*, TYPE)':
jit_codegen.cpp:1148: error: expected primary-expression before '[' token
jit_codegen.cpp:1148: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'llvm::Value* array_read(llvm::Value*, TYPE)':
jit_codegen.cpp:1244: error: expected primary-expression before '[' token
jit_codegen.cpp:1244: error: expected primary-expression before ']' token
jit_codegen.cpp: In member function 'virtual void
DropExpression::codegen()':
jit_codegen.cpp:1272: error: expected primary-expression before '[' token
jit_codegen.cpp:1272: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'llvm::Value* read_variable(TYPE, char*)':
jit_codegen.cpp:1358: error: expected primary-expression before '[' token
jit_codegen.cpp:1358: error: expected primary-expression before ']' token
jit_codegen.cpp:1376: error: expected primary-expression before '[' token
jit_codegen.cpp:1376: error: expected primary-expression before ']' token
jit_codegen.cpp:1378: error: expected primary-expression before '[' token
jit_codegen.cpp:1378: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'llvm::Value* read_variable(TYPE,
llvm::Value*)':
jit_codegen.cpp:1427: error: expected primary-expression before '[' token
jit_codegen.cpp:1427: error: expected primary-expression before ']' token
jit_codegen.cpp:1445: error: expected primary-expression before '[' token
jit_codegen.cpp:1445: error: expected primary-expression before ']' token
jit_codegen.cpp:1447: error: expected primary-expression before '[' token
jit_codegen.cpp:1447: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void make_nullcheck(llvm::Value*)':
jit_codegen.cpp:1480: error: expected primary-expression before '[' token
jit_codegen.cpp:1480: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void make_nullcheck(llvm::Value*, T)':
jit_codegen.cpp:1487: error: expected primary-expression before '[' token
jit_codegen.cpp:1487: error: expected primary-expression before ']' token
jit_codegen.cpp: In function 'void make_double_nullcheck(llvm::Value*)':
jit_codegen.cpp:1499: error: expected primary-expression before '[' token
jit_codegen.cpp:1499: error: expected 

[Gambas-user] error compiling gb.jit

2012-10-14 Thread Ian Haywood
Sorry didn't see previous e-mail. Downloading a new compiler now...

Hello

I am trying to compile gambas 3.3.3 on Debian wheezy
I have llvm-3.1-dev installed
compiler is g++ 4.4.5-1

any help appreciated.

so

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] error compiling gb.xml

2012-10-14 Thread Ian Haywood
Now this one doesn't seem to be mentioned before in the mailing list.

make[5]: Entering directory
`/home/ian/preserve/gambas3/trunk/gb.xml/src/html'
  CXXgb_xml_html_la-gbi.lo
  CXXgb_xml_html_la-utils.lo
  CXXgb_xml_html_la-document.lo
  CXXgb_xml_html_la-node.lo
  CXXgb_xml_html_la-textnode.lo
  CXXgb_xml_html_la-element.lo
  CXXgb_xml_html_la-main.lo
  CXXgb_xml_html_la-hdocument.lo
  CXXgb_xml_html_la-helement.lo
  CXXgb_xml_html_la-CDocument.lo
  CXXgb_xml_html_la-CElement.lo
  CXXLD  gb.xml.html.la
make[5]: Leaving directory
`/home/ian/preserve/gambas3/trunk/gb.xml/src/html'
Making all in xslt
make[5]: Entering directory
`/home/ian/preserve/gambas3/trunk/gb.xml/src/xslt'
  CXXgb_xml_xslt_la-main.lo
  CXXgb_xml_xslt_la-CXSLT.lo
  CXXLD  gb.xml.xslt.la
/bin/sed: can't read /usr/lib/libxml2.la: No such file or directory
libtool: link: `/usr/lib/libxml2.la' is not a valid libtool archive
make[5]: *** [gb.xml.xslt.la] Error 1
make[5]: Leaving directory
`/home/ian/preserve/gambas3/trunk/gb.xml/src/xslt'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/ian/preserve/gambas3/trunk/gb.xml/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ian/preserve/gambas3/trunk/gb.xml'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ian/preserve/gambas3/trunk/gb.xml'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ian/preserve/gambas3/trunk'
make: *** [all] Error 2


there is indeed no /usr/lib/libxml2.la on my system
There is /usr/lib/x86_64-linux-gnu/libxml2.a
But I'm stumped as to why only this library is the one that fails.

Ian

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] error compiling gb.xml

2012-10-14 Thread Ian Haywood
On Mon, Oct 15, 2012 at 12:00 AM, Fabien Bodard gambas...@gmail.com wrote:
 You need Dev package. For libxml2
Yes, I have it already, but because I am running on a 64-bit machine the library
is installed to /usr/lib/x86_64-linux-gnu/libxml2.a, but gambas insists
on looking for where it would be on a 32-bit machine (/usr/lib/), but,
for utterly mysterious reasons, only for this library, it finds all
the others no problems.

Ian

--
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas for Android

2012-08-23 Thread Ian Haywood
On Thu, Aug 23, 2012 at 3:07 AM, Benoît Minisini
gam...@users.sourceforge.net wrote:

 I don't understand why I had no problem with compiling Gambas on
 Debian/RaspberryPI and you have problems to compile Gambas on Ubuntu
 which is based on Debian. Or not?
android is not based on Debian. It has a heavily-patched linux kernel
and that's about where the connection with linux as we know it stops.
The runtime is totally different: no standard C library, no X, etc. I
think graphics is only available through their Java-based layer
so even if you could get Gambas C++ code to compile to ARM you can't
take Qt/GTK with you: so no graphics.

Plus no package management system as we know it: so users would have
to manually download and install gambas, then download and install
whatever application.

I suspect the only real solution is cross-compiling: i.e, turning
Gambas code into the dalvik bytecode instead of gambas bytecode,
plus reimplementing all the Gambas graphics and system APIs to the
Android APIs. Doable, but a crapload of work (basically a full rewrite
of gambas)

I suspect it would be faster to wait for Ubuntu-based tablets and
phones which apparently are coming out soon :-)

Ian

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-11 Thread Ian Haywood
On Thu, May 10, 2012 at 9:42 PM, Christer Johansson li...@hth.com wrote:
 Some good news!

 After rolling back to older code last night and trying to reproduce
 the freezing issue I can say that I was wrong in my conclusion that
 3.1.90 r4702 had the same problem that I experience in Gambas2.
I am also pleased to report gambas3 has finally hit the debian upload
queue. This means builds for all architectures (including Intel, ARM, MIPS and
few weird ones) will become available in a few weeks in Debian testing.
It also means gambas3 will (eventually) filter through into
debian-derived distros
such as Mint, Ubuntu etc.

Ian

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-06 Thread Ian Haywood
On Sun, May 6, 2012 at 7:55 PM, Christer Johansson li...@hth.com wrote:

 I also have RasPi's Debian 6 image running in QEMU ARM emulator so maybe
 another option could be to compile it there and them somehow manually
 lift over the gambas3-runtime and gambas3-gb-net components to the NAS,
 any thoughts or maybe things aren't that easy?
ON the emulated RasPi install kendek's
ubuntu packages from https://launchpad.net/~nemh/+archive/gambas3 to
your sources.list.

then grab all the dependencies
  apt-get build-dep gambas3

then grab the source code itself

 apt-get source gambas3

you may have to try different ubuntu versions of the packages to find
one compatible with your debian, I suggest you start with the oldest
(lucid)

you can then compile the debian packages for armel inside the source
directory like so

  debian/rules binary

this will give you a home directory full of .deb files, you can copy
across the ones you want to the NAS and install

   dpkg -i name of package

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Debian ARMEL packages for Gambas3 components?

2012-05-05 Thread Ian Haywood
On Sat, May 5, 2012 at 10:13 PM, Christer Johansson c...@hth.com wrote:

 I wonder if any Debian ARMEL *.deb packages for the Gambas 3 components
 exists somewhere? I've searched high and low over at Debian.org etc. but
 there is only for Gambas 2.
gambas3 packages for debian are close to release, hopefully a matter of weeks.
 I'm looking for the following two basic components so I can get Gambas 3
 CLI programs running on my NAS running Debian Lenny on ARM...
can you compile it on the NAS?

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] [Feature Request] Offline Documentation

2012-04-18 Thread Ian Haywood
On 18/04/12 23:02, Mathias Maes wrote:
 Why would you need a webserver to download files from a webserver?
 Just simply download them, and show them in the IDE like theyre showed now.
 Would be much easier.
Indeed, but the IDE itself will not read help files from a local hard
drive directly, it must be tricked into thinking it is talking to
gambasdoc.org

Ian

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3.1

2012-04-09 Thread Ian Haywood
On Sun, Apr 8, 2012 at 11:25 PM, Benoît Minisini
gam...@users.sourceforge.net wrote:

 P.S. I don't understand why Ubuntu only provides Gambas 2 and not Gambas
 3 binary packages. Anyone has any idea about that?
Ubuntu take their packages from debian which is still on gambas2.
I have submitted gambas3 packages to the debian devs  and this is
slowly winding its way through their system.
The advantage is this will also get gambas3 into Linux Mint and a
whole bunch of other distros too.

Ian

--
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second 
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] adding functions to gb.db.postgresql

2012-03-28 Thread Ian Haywood
This is not so much a feature request as a question on how to get started.

There are two functions of the underlying postgres C interface that I
would like to expose to Gambas:
PQnotifies() [which returns postgres notification events], and
PQsocket () which returns
the FD of the socket the library is using to communicate with the
server, (my plan is to monitor it
using the 'Open .  fd For Read Watch' trick introduced in #4134)

I'm happy to do the C programming and submit a patch, what I'm unclear
on is how to extend
the Gambas bindings, it's clear from looking at the code that the
database components are all drivers for a fixed common API,
problem is this feature (notifications) is very specific to
postgresql, I don't know if it's possible to add
a couple of extra methods to gb.db.postgresql

thanks

Ia  Haywood

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Create an application with root/sudo previlege

2012-03-25 Thread Ian Haywood
On Sun, Mar 25, 2012 at 4:46 PM, sundar j sundar_...@rediffmail.com wrote:

 I am creating an application which calls bash scripts many time with
 sudo/root privilege. Though i can execute bash script with either kdesu or
 gksu, it asks password many times. Instead it would be nice if any one help
 me on opening an application with sudo/root access. I have searched in
 google and found only this link on the subject
try using gksudo, this assumes the user is set up to use sudo
[on Ubuntu this is usually the case, not on the others]
Generally it will ask for a password the first time root access is
needed but not thereafter.

The other solution is the traditional UNIX one: to have a small
program which is su exec, this is particular
mode which means the program is run as whoever owns the file, not the
user running it.

The mode is set using chmod

chmod u+s my-program

The wrinkle this that interpreted programs like Gambas can't do this,
only complied programs can
So you would need to write a small program in C/Pascal etc to do the
su work which the gambas program
calls.

Ian

--
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] IDE feature request: viewing collection-like objects

2012-03-10 Thread Ian Haywood
2012/3/11 Benoît Minisini gam...@users.sourceforge.net:

 - If there is a _get() method that takes an integer, and if there is a
 Count property, then I can display the object like an array.

 - If there is a _get() method that takes a string, if there is a Count
 property, and if there is a Keys property that returns all keys in the
 object, OR both a _next() method and a Key property that returns the key
 of the last read value, then I can display the object like a collection.

 What do you think about that?
Yes that sounds like exactly the functionality we are looking for.

Ian

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] problems with Music.Pos

2012-03-07 Thread Ian Haywood
attachment is too big so trying again with a link.

On Wed, Mar 7, 2012 at 11:42 PM, Ian Haywood ihayw...@iinet.net.au wrote:
 According to docs, Music.Pos can be set while the sound file is playing
 to move the playing point within the file.

 I find this works for MP3 and OGG but not for WAV, WAV always starts at
 the beginning no matter what.

ftp://haywood.id.au/test-music-pos-0.0.1.tar.gz
 This demo plays two sound files. They are both the sound of me reciting
 the numbers 1 to 10, but the MP3 starts at 5, the WAV from one, even
 though Music.Pos = 3 is done on both files.

 Is this a bug?

 Ian

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] IDE feature request: viewing collection-like objects

2012-03-04 Thread Ian Haywood
Benoit,

some time also we had a discussion about Collection semantics. In Gambas
setting the member of a Collection to NULL is the same as deleting it. I
am not trying to re-open this debate, I accept the decision and have
written a class with the semantics Richard and I want: it can have NULL
members, see cRow attached.
(It also has some database stuff which is very specific to our
application. please ignore that)
It uses _get and _put so it works like a Collection

Problem is, in the IDE it's an object and it is not possible to see the
members like a Collection.

So to my question: is it possible to extend the IDE so that when
displaying an object that overrides _get, _put and _next it displays it
like a Collection does?

Ian


cRow.class
Description: application/java-vm
--
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] repository gambas 3 for ubuntu

2011-10-15 Thread Ian Haywood
On Sat, Oct 15, 2011 at 4:00 PM, Arnezt He arnez...@gmail.com wrote:
 Is there any repository of gambas3 for ubuntu 11.04? Thank you for the
 response.
https://launchpad.net/~ihaywood3/+archive/gambas3

--
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2d-oct
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....

2011-09-18 Thread Ian Haywood
On Sun, Sep 18, 2011 at 8:56 PM, Ru Vuott vu...@yahoo.it wrote:
 Hello,

 thank you for your statement.

   hfile = OPEN /proc/self/fd/num for Read Watch

 Where  num  is a number. Well, I tried the little program changing the 
 number num:
 first with zero, then with 1, then with 2, and so on... until approximately 
 60.
why wouldn't you use the fd number returned from the ALSA library:
isn't that the whole point?

Ian

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3 RC3. But I have a dream....

2011-09-17 Thread Ian Haywood
On Sun, Sep 18, 2011 at 3:34 AM, Ru Vuott vu...@yahoo.it wrote:

 The reopening of the same file should be checked and
 confirmed (you know it), because the opening could provide a
 different file descriptor from fd of ALSA; if instead it
 provides the same fd, then the program'ld enter into
 competition with ALSA.
not sure that this matters: if you open the file under /proc
it will link to the same underlying structure in kernelspace
and ALSA won't know the difference.
Maybe give it a try and if it doesn't work then post code to the list.

Ian

--
BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA
http://p.sf.net/sfu/rim-devcon-copy2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Getting access to popup children of datebox

2011-09-12 Thread Ian Haywood
On Mon, Sep 12, 2011 at 11:05 PM, richard terry rte...@pacific.net.au wrote:
 I notice that the events on the database apply to the main control - clicking
 on the popup calander or time list dosn't have any obvious events.

 Anway to gain access to these???
richard, you and I work on the same project and *I* can't work out
what you mean!
do you mean in selector widgets you can't trap events on the pooped up
calendars or time selectors?
There probably isn't a way do this directly, but I would have thought you could
get an event when the value of the event changes, which should be enough.

or maybe it only fires when the user closes the calendar/time control:
that's a problem for
our project and probably means we can't use a popup calendar after all.

Ian

--
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Release of Gambas 3 RC3

2011-09-11 Thread Ian Haywood
On 04/09/11 20:18, Laurent Carlier wrote:
 Le Samedi 3 Septembre 2011 19:18:48, Benoît Minisini a écrit :
 Hi,


 So, please report!!!

 Best regards,

 Here is the wiki page to edit for information about Gambas binary packages.

 http://gambasdoc.org/help/doc/package
 
 Archlinux packages pushed to the repos
Ubuntu packages at https://launchpad.net/~ihaywood3/+archive/gambas3

Ian



signature.asc
Description: OpenPGP digital signature
--
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas3 and the hidden .src

2011-09-06 Thread Ian Haywood
On Wed, Sep 7, 2011 at 6:37 AM, Karl Reinl karl.re...@fen-net.de wrote:
 Salut,

 now I work more and more with gambas3, and I found out, in daily work
 the hidden .src is really ..now it's time for the sh.. or f... word.

 I don't remember if there was/is a reason to hide the source code, but
 now I know it sucks, that it is hidden.

 What does the community think about that?
I'd second this. Yes .src makes no difference for the GUI  IDE, but
src with no dot would also work just as well. The only point of the
dot is it hides the directory from standard UNIX tools such as ls and
grep. Maybe I'm just a command-line diehard, but I *like* using those
tools and so I agree with Karl. Also it is more standard as all
other languages have their src directory without a dot.

Ian

--
Malware Security Report: Protecting Your Business, Customers, and the 
Bottom Line. Protect your business and customers by understanding the 
threat from malware and how it can impact your online business. 
http://www.accelacomm.com/jaw/sfnl/114/51427462/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas app calling a PERL Script which calls a program (rtmpdump)

2011-09-02 Thread Ian Haywood
On Fri, Sep 2, 2011 at 4:43 PM, John Rose
john.aaron.r...@googlemail.com wrote:
 get_iplayer is a very complex PERL script which I do NOT want to amend.
 get_iplayer involves calling rtmpdump. rtmpdump can be executed in a
 Gnome Terminal. I do not even know what language rtmpdump is written in.
I wonder if the script is expecting user input such as a password, this
would cause it to freeze from within gambas as no input will ever come
Another possiblity is it produces heaps and heaps of output that
can't fit into the sOutput buffer, again programme becomes blocked
because it can't write.

Do you need sOutput? what happens if you run without this, just a plain EXEC?
In this case you might see errors or something come up in the gambas
terminal window which goves you a clue as to what's going on.

the other thing to do (which you may have already done of course) is
to run the exact command that gambas EXEC does in a gnome terminal, in
the same current directory as your gambas programme would be in, and
see what happens.

Ian

--
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free Love Thy Logs t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Cloud

2011-08-27 Thread Ian Haywood
On Sat, Aug 27, 2011 at 10:16 PM, charlesg
char...@pearceshardware.co.uk wrote:


 Andrea Bertini wrote:

 Gui-frontend on desktop made with Gambas, database sqlite on the cloud:
 is it actually possible?
not really, as SQLite is not designed for use across the network.
MySQL/PostgreSQL clouds would work just fine.

If you wanted to go serious cloud you could run Gambas inside an
Amazon EC2 instance
and access via VNC or X. You could use SQLite in this situation.

Ian

--
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas3 Debian Package

2011-08-17 Thread Ian Haywood
On Wed, Aug 17, 2011 at 9:30 AM, rrivett privatem...@root-user.org wrote:
 Hi,

 I'm a new Gambas user. Does anyone know if or when Gambas3 will show up
 in a Debian package, or if the Debian maintainer is likely to package
 one of the release candidates for the Debian Experimental repository
 prior to the full release of Gambas3?
I have prepared debian packages and put them up for inclusion,
currently waiting on a decision by the debian developers to include
(well over 2 months, so I will follow up)

Ian

--
Get a FREE DOWNLOAD! and learn more about uberSVN rich system, 
user administration capabilities and model configuration. Take 
the hassle out of deploying and managing Subversion and the 
tools developers use with it. http://p.sf.net/sfu/wandisco-d2d-2
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiline RegExp

2011-07-27 Thread Ian Haywood
On Wed, Jul 27, 2011 at 5:34 PM, Demosthenes Koptsis
demosthen...@gmail.com wrote:

 2) The Pattern i use is:
 (?i)\b[a-z0-9._%\-]+@[a-z0-9._%\-]+\.[A-Z]{2,4}\b

 3) The result is only one email:
 di...@yahoo.gr

 and not the rest of them.
as you are only calling regexp once, you will only get one result, you
need to set up a While..Wend loop
to go through and find one, then use
Right$(-(Len(sRegExp.Text)+sRegexp.Offset)) to grab the reminder
of the string as search that, until the search fails.

This is inefficient (as a new string is created for each search).
Benoit, is it possible for Regexp.Exec to have an offset parameter,
this would allow more
efficient searching loops.
It would then be possible to write an iterator to grab all occurances
of a regexp, and make it 'easy' like in Ruby/Perl.

Ian

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiline RegExp

2011-07-26 Thread Ian Haywood
On Wed, Jul 27, 2011 at 8:34 AM, Bruce Bruen bbr...@paddys-hill.net wrote:
 regexp only (ever) works on a line by line basis
by default yes, but:
http://gambasdoc.org/help/comp/gb.pcre/regexp/dotall

this makes the . cover newlines, so a regexp can span multiple lines
in the string.

Ian

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] using Sin() to produce a specific range of values

2011-07-10 Thread Ian Haywood
On Sun, Jul 10, 2011 at 3:37 PM, Kevin Fishburne
kevinfishbu...@eightvirtues.com wrote:
 I need to use the Sin() function to calculate an output range from an
 input range. The advantage of Sin() is that it's not linear; it makes a
 nice smooth curve of values sort of like a sound wave in an audio editor.
this example project does this using 50 numbers, you can adjust the stepping
in the FOR loop to change the number of numbers produced.

Ian


sin-0.0.1.tar.gz
Description: GNU Zip compressed data
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas2 and gambas3 Natty

2011-06-25 Thread Ian Haywood
On Sat, Jun 25, 2011 at 6:39 PM, M. Cs. mohar...@gmail.com wrote:
 Yes, I've installed these packages, and had to remove gambas2,
 although many of my apps are written in G2. G3 just looks more
 complicated, so I'll need some time for the change.
 Thanks for your work!
you should be able to install G2 and G3 together using the
--force-overwrite option, do you try this?

Ian

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas2 and gambas3 Natty

2011-06-24 Thread Ian Haywood
On Sat, Jun 25, 2011 at 5:29 AM, M. Cs. mohar...@gmail.com wrote:
 Hello,
 because of a foolish error I cannot use both gambas2 and gambas3 on Natty:

 gambas3-script_2.99.1-1natty0_i386.deb (--install):
  trying to overwrite
 '/usr/share/icons/hicolor/64x64/mimetypes/application-x-gambasscript.png',
 which is also in package gambas2-script 2.21.0-1ubuntu1

 Because of a stupid icon!
 Is it possible to resolve it?
glad to know someone uses these packages.:-)

The immediate solution is to use dpkg --force-overwrite   overwriting
is OK it just means
your icon will be the new gambas3 icon even for gambas2 files.

longer term I'm not sure. The gambas3 icon file can't go anywhere else
or have any other name
as it is a debian standard.
I'll research the options.

Ian

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] arithmetic operations on dates and times

2011-06-08 Thread Ian Haywood
On Thu, Jun 9, 2011 at 12:27 PM, Kevin Fishburne
kevinfishbu...@eightvirtues.com wrote:
 How in the world would one do this? It's not really important that the
 client know the actual date, but it does need to know the time. The
 client should be able to add Timer to the game world time so it can
 keep an accurate 24-hour time while the player is playing. Basically the
 client would receive the game world time upon authentication, then look
 at gameworldtime + Timer to determine what time of day it was until
 the player stopped playing.

 I noticed that adding and subtracting to a date or time prints a
 floating point number, but multiplying or dividing complains about
 expected datatypes. Any insight or outright solutions would bring light
 and dark to the world. :)
Best suggestion is to formally convert the Date to a Float using
CFloat(...) function.
This number is the number of days since 8000BC, time is the fraction
part, so .5 for noon exactly, just before midnight will be .99 and so
on.

So your equation is

   ( CFloat(base_time) + CFloat(Now) ) * 4

You can then use CDate to turn this nuber back into a real date. BUT
my advice would be to send this number, before conversion, down the
wire to the client.

The client then calculates its own time using
  server_time + (Timer () / 86400.0)

86,400 is the number of seconds in a day, this is because Timer comes
in seconds and we want fraction-of-day to keep in line with everything
else.

This number can then be converted back to a date and displayed by the
client, using the clients own localisation setting (not the servers)
so users see the time in their own localisation, but servers and
clients don't stuff up if they are in different countries

Ian

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] odd gb3 issue

2011-06-03 Thread Ian Haywood
On Fri, Jun 3, 2011 at 4:36 PM, Kevin Fishburne
kevinfishbu...@eightvirtues.com wrote:

 I inserted a 100 ms delay between packet transmission and this corrected
 the issue. Any insight still appreciated, as I may have to differentiate
 between LAN clients and WAN clients so the delay is only inserted when
 necessary.
the first thing you should do is ask yourself again why you can't use TCP,
as it includes fairly fancy flow-control algorithms that have been honed
over the last 30 years by some very smart engineers.

If you want to stick with UDP, one option is instead of a simple 100msec wait,
use a timer (I assume these packets are sending updates about game state to the
client), for each update, if the last one has been sent less then,
say, 50msec ago, then don't send the
packet, but if more, then send (without a pause)
This means the system updates without any delay, but there is a
maximum rate of packets
being sent to avoid overloading the recipients buffer.
I wouldn't try to have the code figure out WAN versus LAN, there are
so many different network
configurations out there it is often not meaningful, plus it depends
on CPU speed as well as network
speed (you're problem is the network is too fast for the CPU)
. But maybe let users adjust this timeout value,
if they have fast computers and a fast network they may be able to lower it.

Ian

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 first release candidate

2011-05-26 Thread Ian Haywood
2011/5/21 Benoît Minisini gam...@users.sourceforge.net:
 Hi Gambas fellows,

 The Gambas 3 RC1 source package is available for download now on the website!

 - Who said already ?

 The aim of this first release candidate is ensuring that Gambas 3 will be
 compiled and packaged correctly on the most possible distributions.

 So, packagers, please raise from your graves and howl under the moon for each
 problem you encounter. And report them on the mailing-list of course.

 Some distributions will need a bit of lobbying to ensure that these packages
 are put on their main repositories.

 I will create a page on the wiki for each distribution to centralize all the
 information, like the one that already exist but are a bit of mess.
compiles fine on ubuntu lucid.
I have also changed the distro list to match Laurent's archlinux packages, see
https://launchpad.net/~ihaywood3/+archive/gambas3/+sourcepub/1741887/+listing-archive-extra

Ian

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 first release candidate

2011-05-26 Thread Ian Haywood
On Fri, May 27, 2011 at 12:08 PM, Ian Haywood ihayw...@iinet.net.au wrote:
 I have also changed the distro list to match Laurent's archlinux packages,
I mean the binary *package* list sorry.

PS the best way to get into Ubuntu and friends is to get the packages
in Debian, then it
will filter its way into all the Debian-derived distros. Debian has a
standard procedure for submitting new packages, let me know when
gambas3 is ready for this.

Ian

--
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery, 
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now. 
http://p.sf.net/sfu/quest-d2dcopy1
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas 3 not out yet?

2011-04-28 Thread Ian Haywood
On Fri, Apr 29, 2011 at 1:53 PM, John Spikowski supp...@scriptbasic.org wrote:
 On Thu, 2011-04-28 at 22:22 -0400, Keith Clark wrote:
 I've just installed Ubuntu 11.04 and Gambas 3 is still not included in
 this popular distro?

 Maybe I'm not updating correctly or something.

 Keith,

 You will have to build from svn till Gambas 3 RC1 is released. (watch
 for the icon on the homepage to become active)
you can use interim ubuntu packages from
https://launchpad.net/~ihaywood3/+archive/gambas3

Ian

--
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Webview + images Kubuntu 9 / Kubuntu 10

2011-04-09 Thread Ian Haywood
On Sat, Apr 9, 2011 at 4:54 PM, richard terry rte...@pacific.net.au wrote:

 IMG SRC=/home/richard/webcam_shot.png NAME=graphics1 ALIGN=LEFT WIDTH=320
 HEIGHT=240 BORDER=0, just shows an empty box on the screen where the image
 should be.
firstly I assume /home/richard/webcam_shot.png exists.

second try modifying the html to read:
IMG SRC=file:///home/richard/webcam_shot.png NAME=graphics1
ALIGN=LEFT WIDTH=320 HEIGHT=240 BORDER=0

as some browsers may be picky and require that it be a file:// URL.

Ian

--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >