Re: [Gambas-user] Gambas app run as root

2010-10-01 Thread Rob
On Friday 01 October 2010 15:27, IMP Technologies - Tajinder Singh wrote:
> I have created a small basic interface for Fedora to change Plymouth
>  theme. But as changing theme requires to run some commands as root, I
>  would like to ask for root password before starting the application.
> Similarly whenever we run 'system-config-boot' or other software that
> requires root privileges.

On any other desktop Linux distribution, either "gksu" or "kdesu" would be 
installed by default, and if you checked the current user (User.id) and it 
weren't zero, you could run one of those programs with the path to your 
program as an argument.  It would prompt the user for his password, and if 
the user had sudo privileges, your program would then be run as root.

As I understand it, Red Hat considers programs like gksu to be a security 
risk, and so it's not available in Fedora.  You could build it yourself and 
include it in the package for your program, I guess.

If sudoers is not set up on your users' systems, gksu has a "--su-mode" 
command line option that should allow you to do the same, but asking for a 
root password.  But most modern distributions don't even set a root 
password anymore, requiring users to do everything with sudo and graphical 
wrappers for it such as gksu.  I don't know what the case is with Fedora.

Rob

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Gambasdoc.org hosting (wiki)

2011-03-30 Thread Rob
Hi, my name is Rob Kudla.  I've been providing hosting for the Gambas 
wiki at gambasdoc.org for about 6 years.  The wiki needs a new host.

The Gambas wiki is currently running on a pre-2.0 release of Gambas, 
because the operating system on which our host runs is too old for anything 
newer to compile.  Benoit has been hamstrung by this limitation for a 
couple of years now.  My company has had a new server ready to be put 
online with a new local colocation provider for several years, but said 
provider has been dragging their feet.  Even the replacement server may be 
out of date by the time we finally get it online.  (Not looking for any 
business advice here.  If all we wanted was web and mail hosting, we could 
get that right now from a thousand different places.  We have additional 
requirements.)

I myself haven't used Gambas for a project in several years.  Nearly all 
the code I write is for web or mobile applications now.  My clients are 
more interested in mobile and web apps than desktop apps, and I've done 
more in Java than Gambas recently.  Until someone recently asked a question 
about the Regexp component I wrote long ago, I didn't even have gambas2 
installed on my main machine.

Given all that, is there anyone with web space on a host on which Benoit 
can have shell access, capable of running current Gambas releases, and 
would be willing to work with Benoit to get a copy of the wiki running 
under Apache?  Once everything is working well, I'd transfer ownership of 
the gambasdoc.org/.com domain names to Benoit.  Currently it takes about 
300MB of disk space, mysql access and 2.4 million hits per month totaling 
15GB of transfer (based on Apache logs; actual transfer should be less than 
that).  While I can't speak for Benoit, I would prefer that it continue to 
be ad-free, as it's always been.

If anyone can take this over, please let me and/or Benoit know.

Thanks
Rob

--
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambasdoc.org hosting (wiki)

2011-04-11 Thread Rob
On Monday 11 April 2011 10:45, Rolf-Werner Eilert wrote:
> So, if I'd hire some server with server access, it wouldn't do? Let me

What you describe could be fine for the Gambas wiki, I don't know. (Sounds 
good to me, but Benoit's the one who wrote it!)  What I was trying to avoid 
was well-meaning suggestions for where my company should get its hosting 
from in general, since we and our clients have many other requirements 
unrelated to Gambas.

Rob

--
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


Re: [Gambas-user] Really basic basics

2011-05-20 Thread Rob
On Friday 20 May 2011 06:08, j h wrote:
> For example a simple program
>  has a window with a Valuebox, a button and a slider.   How do i program
>  it so when i press the button the value of the slider is displayed in
>  the valuebox? If anyone can carefull explain how, not just write the
>  code, it would really help me get going! Thanks

Fabien already posted the code, but as far as "how" goes:

How you actually do it in the IDE:

Double click the button, it'll create a Sub (subroutine) for you, and in 
that subroutine you write the one line of code that takes the value of the 
slider and puts it in the valuebox.  Press F5 and it'll compile and run 
your program.

How it works:

The button, slider and valuebox are all "objects".  This is how most 
languages work now: instead of just variables, the things you see on the 
screen are self-contained objects with their own code ("methods", though 
few languages actually use that term in the code) and variables of their 
own (most of which are called "properties").

When the user clicks the button, an "event" is generated.  There was 
nothing like this in Sinclair BASIC and Amiga BASIC had only a little of 
that; the closest thing in 8- and 16-bit computing was the "interrupts" 
used in assembly language to jump to a particular section of code when the 
user pressed a key.  The OS gets the mouse button click, the windowing 
system determines the mouse is over your button, and sends the event to 
Gambas.  The Gambas interpreter checks to see if you have code to run when 
that event happens, and runs it for you, so all you have to think about is 
what happens next.

In a 1980s BASIC program, you would have had a loop waiting for input to 
happen.  In Gambas, this is done by the interpreter (and much more 
efficiently), not your own code.  Event handlers you write, like 
Button1_Click in Fabien's example, replace the big lists of if/thens we 
used to write back then to figure out what the user did and take action 
based on it.

Coming from totally procedural code on a single-tasking system like 
Sinclair BASIC, object-oriented programming with event handling can take a 
while to grasp.  VB, Javascript/AJAX, and most graphical programming in 
Java, C/C++, Python, etc. all work the same way nowadays, so once you 
figure it out in Gambas you'll probably be able to do it in any modern 
language you learn.

Rob

--
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Programming, age

2011-06-23 Thread Rob
On Thursday 23 June 2011 15:52, Fabien Bodard wrote:
> i just don't understand the goal of your query ... :/ still confused
>  about that.

He was asking if there were any old-timers around and what they're doing.

I wrote my first code on a friend's dad's TRS-80 Model 1 in 1978, sold my 
first shareware program (on the C64) in 1985, and got my first programming 
gig doing mainframe DB2 and dBase on the PC in 1990.  So, older than some, 
younger than some.  I've definitely moved more toward web apps in the last 
decade, to the point where it's the vast majority of what I do for clients, 
but have doing more Java again lately thanks to Android, after not touching 
it for about 8 years. (Much better now that Eclipse is stable.)

Rob

--
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. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas for Android

2011-07-13 Thread Rob
On Wednesday 13 July 2011 05:27, Iggy Budiman wrote:
> Android doesn't use X windows, no GTK nor QT.
> Maybe You can compile it for text mode only, compile it for Arm, but
> with no graphic.

Someone has ported Qt to Android.  I don't know how many X-specific hacks 
there are in Gambas, but someone sufficiently motivated (that is to say, 
not me) might be able to port Gambas (using NDK) as well.  Google for 
android-lighthouse.

I think such a thing would be kind of hacky and result in a lot of bad, 
hoggy non-native-feeling apps being written, due to the way NDK works, but 
it should be possible.

Eclipse and Google's Android SDK together are definitely not as easy to 
learn as Gambas, but they do provide a GUI form designer and Java is 
certainly easier to deal with than, say, Objective-C.  For those not up to 
that challenge, there's Google App Inventor.

Rob

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on "Lean Startup 
Secrets Revealed." This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Multiline RegExp [slightly OT]

2011-07-27 Thread Rob
On Wednesday 27 July 2011 07:45, Caveat wrote:
> But if you were to make a commercial product that looked through some
> data, picked out the email addresses (whether it uses regular
> expressions or not to achieve that is irrelevant), high-lighted them and
> allowed the user to perform some action on them... you *could* (in the
> eyes of Apple's lawyers) be infringing on their patent and get pursued
> legally through the courts.

The very first Unix "mail" program did exactly this -- parsing the plain-
text mbox file to find a pattern indicating the start of a message, listing 
the messages for the user and allowing the user to select one -- and 
predates Apple's patent by about two decades.  That they were given it is 
sad, but if they were to try to enforce it against someone with enough 
money to make it worth their while, it's likely they would lose the patent.  
They have many others which are more dangerous, but not as easily used to 
subvert a technical discussion into a political one.

As for the original topic, the way I used to implement a regexp that 
returned a list of results back in my Gambas days was to write a function 
to repeatedly execute the pattern against subsets of the subject string, 
advancing the offset after each successful match.  I wrote the gb.pcre 
component, and if I wrote a mass-match feature in, I've forgotten it.  The 
only lists it returned were lists of submatches, as in if you searched for 
/the (q\S+) (b\S+) (f\S+)/ it would return a list containing the entire 
match, "quick", "brown" and "fox".

Rob

--
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 [more OT]

2011-07-27 Thread Rob
On Wednesday 27 July 2011 08:53, Caveat wrote:
> Right here, it seems like HTC *IS* losing the battle against Apple over
> this very patent!  As we all appear to agree, there's an abundance of
> prior art, so why the heck has the initial determination gone to Apple?

I don't run the list, but I'd rather have non-technical discussions take 
place elsewhere.

Rob

--
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] gambas webos ?

2011-08-25 Thread Rob
On Thursday 25 August 2011 03:02, Girard Henri wrote:
> Do you think gambas could work on hp touchpad webos-3.0.2 ?
> I am not good enaugh to make the port but if people are looking to do
> it, i am interested.

Having done some WebOS development before I got rid of my Palm Pre, I think 
shoehorning X onto it is possible.  However, both the performance and 
integration with other apps would be terrible.  I think someone came up 
with a way to use the framebuffer and maybe you could get Gambas GTK apps 
to work with the framebuffer, but that's definitely more work than I would 
do to support a dead platform.

Rob

--
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] gambas webos ?

2011-08-26 Thread Rob
On Friday 26 August 2011 06:00, Fabien Bodard wrote:
> it will be better to work on integration with android platform !!

Android will actually be a little more difficult (WebOS was actually a full 
Linux implementation but with their own GUI layer instead of X; Android has 
the kernel but doesn't even have glibc) but yes, I think that would be more 
worthwhile.  I haven't really gotten into NDK programming yet so I don't 
know how much is missing.  Maybe someone's already made an NDK X server 
which would make porting Gambas easier, though windowed apps on Android are 
not really a good fit.

Rob

--
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] Gambas app calling a PERL Script which calls a program (rtmpdump)

2011-09-01 Thread Rob
On Thursday 01 September 2011 14:11, John Rose wrote:
>  very complicated (33.4kB of script lines) and I do not know PERL (and
>  have no intention of learning it). Is this concept possible in a Gambas
>  app? If so, how do I make it work?

Calling rtmpdump from Gambas should work more or less the same way as it 
does in Perl (maybe better because you can do input and output on the same 
file handle without complicated select() or fork() stuff), but if you're 
asking whether you can reimplement a long and involved Perl script in 
Gambas without knowing both languages, I think you're out of luck.

If you can get TubeMaster++ to work, it's a much better Linux RTMP/RTMPE 
dumper than rtmpdump, but not command-line and not scriptable.

Rob

--
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 app calling a PERL Script which calls a program (rtmpdump)

2011-09-02 Thread Rob
Before I begin, I should tell you that I tried to duplicate your problem 
but got the list of programmes in my Gambas app just fine using your EXEC 
command, adjusted to find the copy of get_iplayer I just downloaded. I 
created a form with a button and a textarea and wrote this in its class:

PUBLIC SUB Button1_Click()

  DIM sType AS String
  DIM sOutput AS String

  stype = "TV"

  EXEC ["/home/schmoe/build/get_iplayer-2.80/get_iplayer", "--force", "--
type=" & sType] TO sOutput
  
  TextArea1.Text = sOutput

END

Please excuse the word wrapping above and below. The result of clicking the 
button was the textarea being filled with the following:

get_iplayer v2.80, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --
warranty.
  This is free software, and you are welcome to redistribute it under 
certain
  conditions; use --conditions for details.

Matches:
1:  1911 Centenary Lecture - 1. David Lloyd George, BBC Parliament, 
Factual,History,Politics,TV, default
2:  1911 Centenary Lecture - 3. Nancy Astor, BBC Parliament, 
Factual,History,Politics,TV, default
3:  1911 Centenary Lecture - 5. Aneurin Bevan, BBC Parliament, 
Factual,History,Politics,TV, default
[about 792 more lines...]

So what I have to say here is just theoretical. I'm using get_iplayer 2.80, 
Gambas 2.16.

On Friday 02 September 2011 02:43, John Rose wrote:
> EXEC ["get_iplayer", "--force", "--type=" & sType] TO sOutput
> where sType & sOutput are both strings with sType having the value "TV".
> This is equivalent to "get_iplayer --force --type="TV" run in a Gnome
> Terminal except that the output to StdOut is placed in sOutput. This
> command works fine in a Gnome Terminal or even with >Output.txt keyed in
> at the end of the command so that the output goes to a file Output.txt.

Successfully redirecting the output may not be quite the same thing as EXEC 
to a variable in Gambas, as outlined below.

> 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'm familiar with rtmpdump, having compiled it myself a few times. It's 
just C, but in this case that's probably not relevant.

To expand upon something Ian said in his reply (it's probably not 
specifically a password prompt issue since you're able to redirect stdout 
successfully), it may be that your version of rtmpdump and/or get_iplayer 
tries to open a TTY (interactive terminal).  I didn't see anything obvious 
in the current version of get_iplayer or my copy of rtmpdump that should do 
that, but it's almost 10,000 lines of code and the symptoms fit. It would 
work fine in a terminal, even if you redirect input and output, but not 
when run from another process outside of a terminal.  

I ran into the same problem years ago when writing a Gambas program for a 
client that needed to ssh somewhere.  Benoit has made a lot of improvements 
since then. Try something like this:

EXEC ["get_iplayer", "--force", "--type=" & sType] FOR INPUT OUTPUT 

...

PUBLIC SUB Process_Read
  DIM tmp as String
  READ #LAST, tmp, lof(LAST)
  sOutput = sOutput & tmp ' sOuput
END

INPUT OUTPUT simulates a tty when executing the process. I have no way of 
testing this since it works for me as is, and since it's been a few years 
since I did a Gambas project I'm not even sure that Read event syntax is 
right. But I hope it's enough to point you in a helpful direction.

Rob

--
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] webbrowser

2009-04-28 Thread Rob
On Tuesday 28 April 2009 15:25, glenn wrote:
> can someone please tell me how to get the html from the webbrowser
> control.it is s easy in VB6 but immposible with gambas
> webbrowser control.i do not wish to have to  highlight then paste as
> this sucks.

I just looked in the WebBrowser component source, and it seems someone 
wrote a SelectAll property, but it's commented out, meaning there is no 
programmatic way in current Gambas versions to select the whole page and 
then retrieve it using Selection.  I may try to uncomment it and recompile 
to see what the problem was, and package it up if it works, but that won't 
help users with unmodified Gambas installations.

There are other methods for retrieving the HTML from the KHTMLPart widget 
on which the WebBrowser control is based, but for whatever reason 
(probably the original author simply didn't need it) they were never 
exposed.  I assume that the KHTMLPart API has changed significantly for 
KDE4, so the WebBrowser component will have to be reimplemented, and maybe 
whoever does that will provide access to the HTML text.

I'm not sure why this is, but if you need programmatic access to the 
contents of a web browser control, until some future Gambas release it 
seems you'll have to go back to VB.

Rob

--
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How to view GAMBAS BASIC code of a GUI, when I write no code

2009-05-14 Thread Rob
On Thursday 14 May 2009 23:16, KhurramM wrote:
> I make  gui interface of a form.
> I choose options for buttions and lables etc.
> How can I view the code for the options I have selected.
> Definitely  code is amde for all my work.

No, not really.  Just as in VB, Glade, Qt Designer and most other high 
level GUI development tools (except Delphi), the form design is stored in 
a different format.  You can go into your project directory and view the 
files that end in .form to see what it looks like.

It would probably be pretty easy to write something to convert those files 
into Gambas code that instantiates the form with the selected options.  I 
wrote something years ago to convert a subset of the Gambas form 
description language into HTML and CSS, and converting it to plain Gambas 
code would involve a lot less fiddling around.

Rob

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Feature Request - Package Management

2009-05-19 Thread Rob
On Tuesday 19 May 2009 03:07, KhurramM wrote:
> gambas-3.1.2-install.bin or gambas-3.1.2-install.sh
> for every new release (stable or unstable), for all linuxes.
> 2> Faster bug fixing (as every one uses it).

I certainly wouldn't.  If I can't install something using apt-get, I build 
my own package rather than using some binary installer.  

> 5> Be independent of compiling and dependency seeking.

You realize that for Gambas to include all its dependencies in the 
installer - Gtk, KDE, mysql, all the other libraries, statically linked so 
they'll run on any version of Linux - would make the Gambas installer fill 
a CD and maybe more, right?  

> 8> Easy testing of a unstable release.

When it comes to unstable development versions of programs, I think putting 
the "make barrier" in place is useful because it prevents less technical 
users from testing software that isn't safe for them to use yet.  If you 
have trouble compiling things, you're also going to have trouble running a 
debugger to post a stack trace after a crash.

> 3> More documentation to configure and use.
> 10> More helps available.

How will putting Gambas into a monolithic installer create more 
documentation and help?

> Just as sun offers jdk and jre releases fro linuxes.

Sun offers their jdk and jre installers because they used to be proprietary 
software and most distributions wouldn't package them.  That has changed, 
at least partly, but their culture is already in place.  Also, Java has 
very few dependencies, because it reinvents the wheel for the most part 
rather than using existing toolkits and libraries the way Gambas does.

> Currently I am on hardy, and I dont find it comfortable to compile.

There is an installer system called Klik that would provide what you're 
describing, a single file that includes all dependencies, and years ago 
someone packaged Gambas 1.x for Klik.  But I don't know if anyone updates 
it any more and even so, if you're running a KDE 3 system and try to 
install a version of Gambas that includes an entire copy of KDE 4, for 
example, I think it's not going to work too well.  It's a moot point, 
since even when they kept Klik up to date, they only included stable 
versions of programs, not development ones.

Rob

--
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables 
unlimited royalty-free distribution of the report engine 
for externally facing server and web deployment. 
http://p.sf.net/sfu/businessobjects
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] I made a big weird stupid mistake

2009-07-22 Thread Rob
On Wednesday 22 July 2009 02:27:44 pm Benoît Minisini wrote:
> So the gambasdoc.org is not accessible for a unknown period.
> Sorry for the inconvenience!
> Now I hope Rob has saved something...

It's going again, thanks to a 10-month-old backup from the last time I 
tried to migrate our host to a new server ;)

Rob


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


Re: [Gambas-user] Comparing 2 pictures

2009-08-10 Thread Rob
On Monday 10 August 2009 08:42 am, Doriano Blengino wrote:
> There is a program called GQView (and probably others) which have
> algorithms to compare two images in the right way - ie scale them to
> same size, compress colors and normalize them, then compare pixel by
> pixel using a good tolerance.
> I did something similar, it is  a pascal source (if I only remember
> where I put it); or you can download those sources and look into them (C
> sources, I suppose).

I did the same thing in Perl about 9 years ago, circa Mandrake 7.  Don't 
know if it would even run with current versions of everything, and it's 
heavily dependent on Imagemagick for the normalizing, but here it is:

http://www.kudla.org/raindog/perl/ 

(see findimagedupes, the first entry on that page)  Also includes someone 
else's C++ implementation of the comparison function which sped it up by 
several orders of magnitude.

But if both pictures are guaranteed to be the same size, something as 
simple as converting each one to text-based PPM format and using diff 
should be sufficient.

Rob


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Comparing 2 pictures

2009-08-10 Thread Rob
On Monday 10 August 2009 09:58 am, richard terry wrote:
> > But if both pictures are guaranteed to be the same size, something as
> > simple as converting each one to text-based PPM format and using diff
> > should be sufficient.
>
> thanks, but whats a PPM format? (sorry I'm image illiterate)

It's just another format like PNG or JPG, but it can be optionally text-
based.  Assuming you have ImageMagick installed on your system, if you go

convert myimage.jpg -compress none test.ppm

and then "less test.ppm", you'll see that it's written as a plain text 
file.

Rob


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] pickle?

2009-08-11 Thread Rob
On Tuesday 11 August 2009 02:32 am, Peter Tyler wrote:
> One thing I'm looking for in Gambas is something like the
> python "pickle" functionality.
> Does anyone know if this functionality is available?

Benoit used to talk about object persistence/serialization as a 3.0 
feature, but I don't know the status of that yet.  As Steven posted, you 
can always just write data types to a file directly, but to write them in a 
semi-human-readable format like pickle does would probably need its own 
component or module.

Parsing existing pickle data would probably not be that hard; I've done it 
in Perl on a number of occasions.

Rob



--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] text interface apps

2009-08-12 Thread Rob
On Wednesday 12 August 2009 12:30 pm, Rolf-Werner Eilert wrote:
> And yes: I don't think the special "graphical characters" like in DOS
> (ASCII > 128) exist on a Linux terminal, do they? So it would be
> somewhat difficult to build "mask" like things. Though Midnight
> Commander can do this, how does it handle this? Maybe special fonts for
> terminal output? And top has lines, too...

The ANSI extensions to ASCII include all those graphical characters (and 
that's how they did them in DOS as well.)  Most modern terminal types 
support ANSI, but you can't count on the user's font supporting them.  I 
assume this is why some Linux console programs use +--+ to make lines 
and corners instead of those box characters.

The way to do this, I think, would be to make a Gambas component that 
implements as much of gb.form as possible using the ncurses library.  
ncurses is lower level than gtk or Qt though (I'm not sure it even manages 
its own event loop), so it would be a big project.  But Mono has it (see 
MonoCurses) so it's certainly possible.

I seem to remember a Gtk-like toolkit that sat on top of ncurses, so maybe 
if that's still being developed it would be an option.  Googling got me to 
mytui, NDK++ and CDK, which are ncurses-based widget sets, but they haven't 
been updated in a few years.  Then again, maybe someone trying to develop a 
Gambas component could use that code as a starting point.

Rob


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Managing soundtracks, WAVs

2009-08-14 Thread Rob
On Friday 14 August 2009 08:15 am, Joshua Higgins wrote:
> I'm sure there is an example project that handles playing wav files...

I'm pretty sure I or someone else posted a simple WAV player example to the 
list shortly after the gb.sdl component was released (I know I wrote one 
but someone might have beaten me to it.)  No idea about recording 
though

Rob


--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] The Gambas wiki...

2009-10-18 Thread Rob
On Sunday 18 October 2009 06:47 pm, Jerry McBride wrote:
> Is the source  code for the wiki available? I understand it's written in
> gambas... It would make a great tutorial.

As far as I know, it's included in the Gambas tarball in the 
"app/src/doc.cgi" directory.

Rob


--
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Licensing problems in Gambas

2009-11-19 Thread Rob
On Thursday 19 November 2009 07:09 am, Benoît Minisini wrote:
> There are two licensing problems in Gambas that must be solved.
> 1) The first one should not be difficult: we must find a license for the
> gambas wiki documentation that makes it free. I need suggestions...

Wikipedia uses the GNU FDL, and of course there are the various Creative 
Commons licenses that are better suited to documentation than programs.

I guess the next question is whether everyone who's contributed to the wiki 
will go for whichever license you pick; I'm certainly okay with the GFDL or 
CC-BY-SA, but I have no idea how other people would feel.  

I thought I had some text in the old Wiki on the editor page that required 
the user to submit their entries under some free license, but that page 
wasn't included in the static dumps for obvious reasons and I can't find 
the old tarballs of our TWiki installation that I made after the spammers 
attacked.  At any rate, I don't see anything like that in the current 
Wiki's editor.

> 2) The bad problem: gb.db.firebird uses two sources files from
>  www.ibpp.org whose license (the Borland Interbase Public License) is
>  not compatible with the GPL. This point was raised by Kelly Hopkins,
>  the maintainer of the gnu.org free software directory. I'm afraid
>  Gambas will have to lose firebird support, but maybe we should ask
>  www.ibpp.org about that. I need help there too!

Who wrote gb.db.firebird?  Maybe they could maintain it as a separate 
package, though I guess whichever Gambas headers they built against would 
have to be relicensed as LGPL in that case.  I didn't know anyone used 
firebird anymore.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Licensing problems in Gambas

2009-11-19 Thread Rob
On Thursday 19 November 2009 09:52 am, Toni wrote:
> If NC or NC are choosen then the resulting Creative commons license
> can't be considered a free license. Further I think that some people
> won't consider as a "valid free license" a Creative commons  with
> condition of Attribution (BY).

The CC-BY license is essentially a BSD-style license for non-code uses, and 
CC-BY-SA is meant as a copyleft like the GPL, though it's fundamentally 
less stringent because it doesn't require source materials to be provided 
(I've been looking for that kind of license for my music for years and no 
one has come up with one, probably because of the difficulty in 
establishing what constitutes source materials for artistic works).  

As far as BY goes, there are no CC licenses without attribution anymore, 
see here:

http://creativecommons.org/licenses/

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Licensing problems in Gambas

2009-11-19 Thread Rob
On Thursday 19 November 2009 10:36 am, Charlie Reinl wrote:
> gambas-1.0.17/help/VisualIntroductionToGambas.html
> is this what your looking for ?

No, by "the editor page" I meant the page that lets you enter stuff into 
the wiki, not the page with screenshots of the IDE.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas as firefox plugin !!!

2009-11-23 Thread Rob
On Monday 23 November 2009 05:07 pm, Vackoy wrote:
> I think is an excellent idea but i don't know if it is possible.
> Sorry my ignorance but what is an ecma-script code??

ECMAscript is the language used in web browsers as "Javascript" and in 
Flash applets as "Actionscript".

I don't really think crosscompiling Gambas code to Javascript makes any 
more sense than crosscompiling Gambas code to Java.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas as firefox plugin !!!

2009-11-23 Thread Rob
On Monday 23 November 2009 05:06 pm, nospam.nospam.nos...@gmail.com wrote:
> My opinion is that it is a terrible idea. For starters, how do you plan
>  to install the runtime libraries, using sudo apt-get or distribute the
>  libraries as as part of the plugin? And once you've decided that, how
>  many hours will users on slow connections have to wait while umpteen
>  megabytes of support libraries are downloaded and installed?

Gambas as a plugin would have to include the barest minimum of components 
(maybe just SDL, some embeddable database, etc., and the Gambas-based 
components that require only those) and those components would have to all 
be based on libraries that can be statically linked, like all the other 
Netscape-style plugins out there.  But having such a limited subset of 
components would keep the plugin pretty small in modern terms, certainly 
far smaller than Java, for example.

And as with Java, there would have to be a mechanism for downloading other 
software components, whether at each runtime or cached on the disk.

> > If there is a Gambas web browser plugin then the Gambas will be the
> > first Basic language that can be run everywhere due to browser
> > (firefox) and will have not limited only to Linux.
> Really? So you plan to run a Google-sized freenx server farm for Windows
> users then?

Gambas has been built successfully under Windows, though getting gb.sdl and 
friends to work would be left as an exercise for well, someone who has 
a Windows machine, for starters.  Not most people here.  Still, that is 
possible.

(Original poster wrote:)
> > Also this means that programmers can write easy known Basic
> > applications that can be run in any hardware that runs a browser (any
> > device from cell phone to pc).

This is a misconception: most cell phone browsers do not support Netscape-
style plugins, and those that do (like the Palm Pre's) don't support 
standard x86 Netscape-style plugins.

While I disagree with Mr. Nameless Angry Guy about the reasons why this 
isn't a sound idea, I do agree that it probably won't work too well.

1. This method of popularizing a language has been tried before with Tcl 
and Perl (probably others too, but those are the ones I know).  I think 
that in both cases, it did more damage to the language's reputation than 
good, because of the impression it gives of "me too".  

2. The functionality that would have to be removed to make it self-
contained and small would take away a lot of its selling points.

3. Gambas hasn't been written with sandboxing or any other particular 
security concerns in mind.  You need that in a language implemented as a 
browser plugin.

4. Plugins to add browser functionality are on their way out thanks to 
HTML5 and greater attention paid to standards by every vendor except 
Microsoft.  In another year or two, even Flash will be regarded as a legacy 
technology as more people start running browsers with native video support.

That said, I did start playing around with trying to hack the Gambas 
interpreter into a Palm Pre WebOS-compatible ARM Netscape plugin, since 
plugins are literally the only way to put non-Javascript code in your WebOS 
application.  Didn't get very far (got hung up on the same ARM 
crosscompilation issue as someone else who recently posted, before even 
making any code changes).  But I'm still looking at doing that, as well as 
trying to get a minimal Gambas/gb.sdl Nintendo DS port going which would be 
tougher, with little to no POSIX compatibility available.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas as firefox plugin !!!

2009-11-23 Thread Rob
On Monday 23 November 2009 10:14 pm, nospam.nospam.nos...@gmail.com wrote:
>  I do that, some people infer angry emotions that aren't there.

Just because you're denying them doesn't mean they're not there.  I wish 
you the best of luck with your healing process, at such time as you choose 
to embark upon it.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] keep forms into a form

2009-11-24 Thread Rob
On Tuesday 24 November 2009 05:23 am, nospam.nospam.nos...@gmail.com wrote:
> Look, I cut my teeth on DOS before Windows was even dreamt of. The win3
>  MDI interface was the best anyone could come up with two full decades
>  ago.

And the "vomiting little windows all over the desktop" approach was the 
best anyone could come up with two and a half decades ago.... on the Mac.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas as firefox plugin !!!

2009-11-24 Thread Rob
On Tuesday 24 November 2009 11:23 am, José Luis Redrejo Rodríguez wrote:
> That's the idea behind of GWT [1] or Pyjama [2], and I can assure you
>  that both are good project, and GWT is very succesfully and is making
>  me thinking of migrate some of my gambas applications to a web
>  interface, even if I have to use Java (which I wouldn't say it's a
>  language I love) to do the user frontend.

I did write a script in 2004 to generate DHTML widgets out of Gambas 1.0 
forms (HTML + Javascript + CSS + some perl CGI code -- the term "Ajax" 
hadn't been coined yet), but simply taking desktop apps and throwing them 
on a web page really didn't work that well as a user interface paradigm.  
But I forgot about GWT.  I should have a look at the code it generates to 
see how awful it is, but it's still strange to me to think of a high-level
interpreted language as a compilation target.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Another question about Gambas on ARM

2009-11-26 Thread Rob
On Thursday 26 November 2009 08:40 am, Matteo Lisi wrote:
> If what I said is correct how I can do for port gambas on ARM ?
> Is correct to crosscompile the gcc compile for ARM and then made
> "./configure make make install"
> on the ARM platform ?

Someone else suggested looking at the Debian ARM packages of Gambas, and I 
think that's a pretty good place to start.  I would think you'd have to run 
"make install" on the target architecture, perhaps in an emulator 
environment if it's not available to you at build time.

Rob

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Remotly Debug

2009-12-04 Thread Rob
On Thursday 03 December 2009 05:15 pm, Benoît Minisini wrote:
> Your new threads are never attached to another non-related thread when I
> receive them. Why? I use KMail: do other people see the same thing than
>  me?

I've been using kmail since before version 1.0 and I've never seen these 
list messages threaded at all, even though I have "Expand thread" and 
"Collapse thread" options in the View menu.

Rob

--
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing. 
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Please help

2010-04-21 Thread Rob
On Wednesday 21 April 2010 12:14 pm, Zelimir Ikovic wrote:
> http://code.google.com/p/domotiga-livecd/downloads/list
> When I download Live CD there is 8 files, what is next to do

I can't tell what operating system you're using, so here are a few guesses.

In Ubuntu, you would install "unrar" in System/Administration/Synaptic 
package manager, open the folder into which you downloaded the files, and 
double click the first file.  In the window that comes up should be the CD 
image.  Drag that into another folder, right click on it, and select "Write 
to Disc".  

If you're running Windows, you'll want to google for 7zip (I think it's 
www.7-zip.org), download and install it.  Open the folder into which you 
downloaded the files, and double click the first file.  In the window that 
comes up should be the CD image.  Drag that into another folder.  
Unfortunately, I don't know what Windows software is best to use for 
burning CD images to disc, so you'd have to google around for that.

Rob

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


Re: [Gambas-user] Gambas and ssh

2010-06-23 Thread Rob
On Wednesday 23 June 2010 11:38 am, Pablo Ontivero wrote:
> Hi, i'm trying to make a app for connect to a pc with ssh, i can connect
> [...]
> entablish and after press the button3 the connection close. I'm not sure
> if when i press the button2 i send the command, but i don't know how to
> see this. Please, anyone can help me? Thanks.

I don't know if it's still the case, but ssh used to require a TTY and 
Gambas' SHELL command used to not provide one.  I ended up writing a perl 
wrapper using a TTY simulator module that spawned ssh on a TTY, passing the 
command line arguments as well as handling bidirectional I/O between the 
two processes.  I might have used the Expect module, not sure (it was for a 
client and I don't think I have the code anymore.)

Rob

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas for iphone or ipad apps

2010-08-19 Thread Rob
On Thursday 19 August 2010 02:41, Tomas Rodriguez wrote:
> I would like to know How can I developer apps for ipod or iphone with
> gambas?

According to Apple's own iPhone developer agreement,

"Applications must be originally written in Objective-C, C, C++, or 
JavaScript as executed by the iPhone OS WebKit engine, and only code 
written in C, C++, and Objective-C may compile and directly link against 
the Documented APIs ..."

So even if you were able to write programs for the iPhone in Gambas, doing 
so would get you rejected from the App Store.  To develop more than web 
apps for the iPhone, you need to buy a Mac and learn Objective-C (which is 
their preferred language), C or C++.  Most likely Objective-C, since C and 
C++ can be used in cross-platform toolkits and Apple is doing its best to 
kill those off.  They might institute an Objective-C-only policy in the 
future.

It may be possible to port Gambas and an X server to the iPhone/iPad for 
use by users with jailbroken devices, but without a profit or fame motive, 
I don't see anyone putting the effort into that.

I already went down this path about a year ago, and Apple's only gotten 
stricter since then.

Rob

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas for iphone or ipad apps

2010-08-21 Thread Rob
On Saturday 21 August 2010 03:37, Iggy Budiman wrote:
> What about android on arm? Gambas can compile in arm right?
> There's a lot of cheap (made in china) android tablet in the market.
> If gambas (ide and compiled app.) can run on those platform, I'd like to
> order some of those.
> Would be nice too, since we would be able to make android application
> using gambas, even develop on it too.

Android is Linux-based but doesn't run X.  You code for it in Java using 
Google's own APIs.  But they recently came out with a "native development 
kit" to allow easier porting of games, and it might be that parts of Gambas 
could be ported to that.  

Someone has started working on porting Qt to Android, also using the NDK.  
Until that's ready, you'd have to either roll your own interfaces in SDL or 
write your own widget set for Android, though (I think a gb.sdl.interface 
component has been a long time coming but haven't had time myself.)  Either 
way, you'll be running into the problem that your apps don't look native, 
so you might as well just be writing a web app.  But it should be possible.  

I've been writing Java code on and off for about 12 years, so I've been 
doing some Android development myself, using Eclipse and some plugins to 
make GUI development less of a pain.  But it's not as elegant as Gambas, 
and likely never will be.  

Google also has "App Inventor", which allows you to make basic Android apps 
with little to no coding, but at a much higher level than Gambas, with far 
less control (they provide pre-coded graphical "blocks" to assemble your 
program logic, flowchart style, instead of controls and methods/properties 
like Gambas).  It's more like one of the old game construction kits from 
the 90s than a development environment, but all they're doing is changing 
commands and parameters to little puzzle pieces you fit together into 
"blocks" that are essentially lines of code.  

You have to request an invitation, so I haven't tried it yet.  I also don't 
think you can start an app in there and finish it by writing code in 
Eclipse.  But I guess that's what I'd recommend trying for a Gambas 
programmer who wants to develop for Android, at least until someone ports 
Gambas in a way that makes it feel native.

I've been waiting for a cheap Chinese tablet with a multitouch capacitative 
touchscreen as a test device, since most phones coming out now are 
multitouch and capacitative (use your finger, not a stylus).  If you know 
of any like that and could send me a link privately, I'd appreciate it.

Rob

--
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] RaspberryPi

2012-12-17 Thread Rob
On 12/17/2012 11:31 AM, John Rose wrote:
> Emil & Rob,
> Thanks for your replies. I presume that armhf is appropriate for 
> RaspberryPi. I assume that Ubuntu repos will be fine for Debian Squeeze. 
> I'll let you know how I get on.

Sorry for the confusion. I just answered that question for someone on an
ARM forum and forgot they ship with Debian and not Ubuntu. It may pull in a
lot of dependencies from Ubuntu repos that make life difficult in the rest
of Debian. But I'd probably still try it; Gambas seems made for an
educational device like the Pi.

Rob


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] How does one do some sort of auto-documentation for program

2008-06-10 Thread Rob
On Tuesday 10 June 2008 18:46, richard terry wrote:
> Anyone know how to set this sort of thing up?

Are you talking about something like Perl's "pod" system, where you 
encapsulate your documentation inside your code?

http://www.perl.com/doc/manual/html/pod/perlpod.html

I think you could adapt that concept to work with comments in your 
Gambas code, or adapt Benoit's Wiki generator program to generate 
static HTML for your own classes.

Rob

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Simple question how to select and activate a radiobutton via code

2008-06-23 Thread Rob
On Monday 23 June 2008 20:33, jbskaggs wrote:
> When I try and use radiobutton_click()
> it performs the commands in the radiobuton_click() sub  but it does
> not show the radiobutton as being "depressed" or selected as if you
> had clicked on it with a mouse.

You've got it a bit backwards.  You need to change the Value property 
of the radio button, which will trigger the Click event, not the 
other way around.

http://gambasdoc.org/help/comp/gb.qt/radiobutton/.click

"Raised when the user clicks on the RadioButton or if its value 
changes."

Rob

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Regexp Submatches

2008-06-25 Thread Rob
On Wednesday 25 June 2008 10:21, Nathan Neff wrote:
> For example, I want to find all non-whitespace characters in the
> string "Gambas", and
> iterate through them.  I tried code like this:
>   rege.Compile("(\\S)")
>   FOR i = 1 TO rege.SubMatches.count
> Message(rege.SubMatches[i].Text)
> But I can only get it to print out the "g" character.

Submatches refer to the parts of your regular expression in 
parentheses; matches don't automatically repeat unless you call Exec 
multiple times.  For example, if you wrote

rege.Compile("(\\S)..(\\S).(\\S)")

you would get three entries in Submatches, which would be g, b and s.  
You should theoretically be able to do this, but I just tested it in 
a Perl one-liner and there it only returns the last character:

rege.Compile("(\\S)+")

A better solution is to use the Offset property and write your own 
method to do a global search (here's some pseudocode to get you 
started:)

private function GRX(pattern as string, subject as string) as String[]

   dim re as new Regexp
   dim matches as new String[]
   dim tmp as string

   tmp = subject
   re.Compile(pattern)
   re.Exec(tmp)
   do while re.text <> ""
  matches.add(re.text)
  tmp = mid(tmp, re.offset + 2) ' may need to be 1, can't remember
  re.Exec(tmp)
   loop

   return matches

end

I probably should have just come up with some way to do that inside 
the component, but it didn't occur to me at the time.

I see that most of the class member documentation never made it over 
from the old Wiki to the current one, so I'll try to take some time 
and fix that if I can find my old static copy of the wiki.  I wonder 
if it would be useful to at least default to a syntax summary (as in 
VB's class inspector) rather than prompting the user to edit the page 
if the documentation's missing.  As it is, if you edit the page but 
leave it blank and save it, the wiki inserts the syntax summary 
anyway.

Rob

-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas and Mousepointer

2008-07-30 Thread Rob
On Wednesday 30 July 2008 11:02, Stefan Miefert wrote:
> Under windows I use .cur  Format and define theclickpoint in the
> gfx programm. But how can I do this in gambas/linux?

Set the X and Y properties of your cursor object.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] packages for mandriva 2007

2008-08-14 Thread Rob
On Thursday 14 August 2008 10:31, Francesco Xavier Kolly Mally wrote:
> to mr. Rob Kudla
> do you make gambas urpmi packages for mandriva 2007.0.i586 

I do have a Mandriva 2007.0 machine still kicking around (it'll be 
wiped and replaced with Ubuntu Hardy in the next few weeks if all 
goes according to plan) but the newest Gambas I've built for it is 
something like 1.9.49.  I'll try to build a current one and see what 
happens.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] packages for mandriva 2007

2008-08-14 Thread Rob
On Thursday 14 August 2008 16:49, Ron Onstenk wrote:
> I did play with PClinuxOS-2007 on the work place to teach students.
> One of the things I like was the hardware manager (network
> special). I do have now dual boot at home between kubuntu hardy and
> mandriva 2008.0

Well, I have other machines too (running Mandriva 2007.1, Kubuntu 
Gutsy, and Mandriva 2008) but he was just asking about the 2007.0 
box.  It's a stupid thing, but it was my late partner's workstation 
and I just feel kind of funny about turning it into something else.  
Since someone still needs packages built it's a good thing I haven't 
had the nerve yet, I guess.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] All Basic new look

2008-08-21 Thread Rob
On Wednesday 20 August 2008 17:14, [EMAIL PROTECTED] wrote:
> Our webmaster just release the new look for www.AllBasic.Info. The
> Gambas board is looking pretty bare and could use a condensed language
> reference guide, tutorials, screen shots and code examples.

All your boards are looking pretty bare, because your site has only existed 
for a few weeks.

> Gambas is the best kept secrete in the Basic community and I hope
> working together we can change that.

When the BASIC community starts visiting allbasic.info, I'll probably be 
part of it.  But with the most active board having 6 posts on it as I type 
this, I don't think that has happened yet.  

> It would be great if one of the senior members of the Gambas team
> would step up and be the team leader for your board on All Basic.

As far as I know, I'm the only one here who regularly takes part in web 
forum support, and I haven't even had time to visit linuxbasic.net, which 
has the most active Web forum for Gambas, in a month or two.  I know that 
a lot of BASIC users prefer the web forum approach, especially novices, 
but most developers still seem to prefer mailing lists.  The posts come to 
us rather than the other way around.

Best of luck in your endeavor.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] text files

2008-08-26 Thread Rob
On Tuesday 26 August 2008 07:17, Mike wrote:
> How do I save a text file without extra chars at the start of the file.
> If I save with the following code there is one extra char added to the
> start of the file.
> WRITE #hfile, "Stuff"
> If I use a very long string I get two chars added at the start of the file.

"WRITE" writes its arguments in binary format, which includes the length of 
the string in this case.  You want PRINT.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Drawing Persistence

2008-08-31 Thread Rob
On Sunday 31 August 2008 16:38, Jason Hackney wrote:
> How do you make an image in the Drawing Area persistent?
> That is, I draw a box. Then open a popup (which appears directly over
> my drawing). Close the popup when I'm done and parts of my drawing
> (which were covered by the popup) are blanked out--needing to be
> redrawn by calling the initial drawing event.

You want the Cached property.

http://www.gambasdoc.org/help/comp/gb.qt/drawingarea/cached

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Nice book of Gambas

2008-09-03 Thread Rob
On Wednesday 03 September 2008 07:57, Ron_1st wrote:
> The publisher wil not make it GPL if they can have financial profit
> of it when they sell the book.

Does the publisher even own the copyright in this case?  Rittinghouse used a 
vanity press, by the looks of the book a print-on-demand one, and they often 
don't.  I would check my copy but it's still packed following my most recent 
move.  If he'd used CafePress or Lulu I would feel safe saying they 
absolutely don't own it, but as I recall he used a different one.

At any rate, the biggest obstacle to wikifying the book was the fact that we 
don't have the original document.  Even then it'd take a lot of work.
Benoit's original Gambas documentation was much shorter and it still took me 
weeks to get it into the original Gambas wiki which eventually fell into 
disrepair and disorganization, just as I think the one based on this book 
eventually would.  MediaWiki is a better wiki than TWiki was, but a book needs 
a fundamental organization to it.

I think that if someone wants to proceed with this, you'll need to get in 
touch with John -- or, if the worst has happened, with his estate.  

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] MD5SUM collisions

2008-10-24 Thread Rob
On Friday 24 October 2008 15:10, Kari Laine wrote:
> referring to discussion few days back I have now tested md5sum with
> 540388 files and got NO collisions - I think. Method I used was to
> calculate md5sum and sha512sum for all those files.

I really think that the problem with md5sum collisions is relevant to 
security concerns, but not data integrity concerns.  In a security 
context, you have to say "It would have taken a hacker at least an hour to 
fake the md5sum on this file", but when you're just trying to prove a copy 
of a file you've just made is the same as the original, you can say "There 
is a 1 in 340,000,000,000,000,000,000,000,000,000,000,000,000 chance that 
these two files with the same md5sum might be actually different.  With 
odds like that, I'll take my chances."

Like you, I'm using md5sums as a method of backup verification, not a 
password hash or the basis for encryption.  I think it's fine.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Regular expressions

2008-10-30 Thread Rob
On Thursday 30 October 2008 17:59, Markus Schatten wrote:
> I'm a newbee to Gambas and I have a little problem. I would like to use
> the pcre Regexp class, but I seem not to be able to find any examples of
> how to instantiate a new object nor how to use such objects. Is there
> any documentation/tutorial/example? If not could please someone post a
> short example on how to use it?

Yeah, I updated the wiki a few weeks ago with some documentation.  See if 
it's what you need and tell me if it isn't.

http://gambasdoc.org/help/comp/gb.pcre

Here is the page about instantiation, to which I just added a brief 
example:

http://gambasdoc.org/help/comp/gb.pcre/regexp/_new

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Regular expressions

2008-10-31 Thread Rob
On Friday 31 October 2008 12:09, Markus Schatten wrote:
> Thanks a lot for the links, they were very helpfull. Is there a way to
> use a regex for looping through all matches? Something like scan()
> in a for each loop or findall in python-re? I was able to figure out
> that the Text property holds the first match, Submatches is an array of
> given submatches (in parenthesis) and Offset holds the index if the
> first match. There seem to be no other properties defined...

I haven't created a method to do this yet because pcre doesn't include such 
a mechanism natively, but it's certainly possible.  Here's some 
pseudo-code, which should at least compile.  I had to add the extra 'and 
subj <> ""' test because at least in my copy of gb.pcre, there's a bug 
where if you pass it an empty string it throws an error as if you passed 
it a null string.  I'm building the latest Gambas now to see if Benoit 
fixed that when he fixed the rest of my bad code in 2.7.0. ;)

function FindAll(subj as string, pattern as string) as String[]
dim re as Regexp
dim matches as new String[]
re = new Regexp(subj, pattern)
do while re.offset >= 0 and subj <> ""
matches.push(re.text)
if len(subj) > len(re.text) then
subj = mid(subj, re.offset + len(re.text) + 1)
else
subj = ""   
        end if
if subj <> "" then re.exec(subj)
loop
return matches
end

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Rob
On Thursday 06 November 2008 07:19, Robert Moss wrote:
> Ok, awesome. But what is a control group and how do I use one? I can't
> find any documentation on it

The "control group" concept in the form designer corresponds to what comes 
after the "AS" when you programmatically create a control.  In the example 
you posted, you're creating a control group.

Control groups don't automatically create an array when creating them in 
the form designer, or allow you to iterate through the controls; it just 
ensures that all the controls in the group trigger the same events.  But 
you're already creating an array in your code, so you've gotten that part 
licked.  

Differentiating between the controls when their event gets fired is where 
most people get tripped up.  Most people use the Tag property of each 
control to identify it, like this:

' in Form_Open
btns[0].tag = 0
btns[1].tag = 1

' in btns_Click
dim btnindex as integer
btnindex = LAST.Tag
Message.Info("You pressed button " & btnindex)

I find this usage clunky as well, but I've also run into situations where I 
wanted multiple controls of different types to trigger the same event, and 
control groups allowed me to do that where VB control arrays wouldn't 
have.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Help - PLEASE - Object Arrays - Need help ASAP

2008-11-06 Thread Rob
On Thursday 06 November 2008 13:37, Doriano Blengino wrote:
> i.e., LAST is a reference to the object that raised the event, and you
> can compare it to anything you like (probably widgets).

Yes, that should work, but with limitations.  You would have to hardcode 
the name of the control you wish to compare against at compile time.  
Gambas lacks enough introspection at present to obtain a reference to an 
object using its symbol name at run time.  (As far as I know, the same is 
true of VB.)

> The tag system is another way - sometimes tags are better, sometimes
> control/widget reference is.

Agreed.  This will be easier if you have "OK" and "Cancel" buttons across 
the bottom of the screen and want to tell which one got pressed, but if 
you have an array of 64 buttons (or text boxes, like one of my clients) it 
might be time to start assigning tags at control creation.

Rob

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GAMBAS Suggestions

2008-12-07 Thread Rob
On Sunday 07 December 2008 14:27, [EMAIL PROTECTED] wrote:
> I find it curious that such a great piece of software doesn't have a
> better updated website and a bug/tracking system.

Gambas is a project with a benevolent dictator, namely Benoit, who does 
most of the work and prefers mailing lists for bug reporting.  You can 
sign up for notification of the subversion commits to see which bugs get 
fixed, as well.

I just looked at the project website (gambas.sf.net) and it correctly 
indicates that the current stable version is 2.9.0.  It provides a 
download link to that and instructions for checking out the development 
snapshots.  What do you see there that could be better updated?

There are forums out there, but what the community lacks is people who 
actually care about web forums.  I try to stay on top of linuxbasic.net 
which gets 5 or 10 posts per week, but when you get right down to it, 
mailing lists come to me whereas I have to go to a web forum.  
Gambasforum.tk gets a few posts a week as well.  Some other guy was trying 
a couple months ago to start a catch-all BASIC forum site, sort of a 
linuxbasic.net knockoff only with lots of added Windows users, but none of 
us had time to visit yet another forum.

The Gambasrad.org forums, once you set aside the mirrored content of this 
mailing list, are pretty quiet so I haven't been there in some time.  I 
just went there now and see that it calls itself the "Gambas home page", 
but that doesn't seem to be the case.  If you came across that and were 
led to believe it was the project website, I can understand why you'd 
complain about its outdatedness since the most recent announcement was 13 
months ago today.  

> I think we as a community need to expand this knowledge.

The Gambas wiki started when I took the original Openoffice document Benoit 
created to document Gambas 0.30 (or thereabouts) and converted it into a 
format a wiki could handle so that people could add documentation and a 
static version could be created for inclusion in the IDE.  I did this 
without asking for permission and without being told to.  Only when it 
turned out to be usable (and Benoit had made many suggestions and 
improvements) did it become "the Gambas wiki", eventually being replaced 
entirely with Benoit's custom wiki code that we run today.  

In other words, the only way things ever get done in free software is 
through someone who takes the initiative.  Please don't feel you need to 
ask before doing something for the community, though it's also important 
not to get too discouraged if what you think the community needs turns out 
to be not as useful as you thought.  Starting (and keeping well-organized 
and on-topic) an examples repository would be a great idea if you have 
that kind of time.  

And time is really the limiting factor.  When I set up the original wiki in 
early 2003, I had some clients who needed a lot of Gambas work in 
preparation for a push to Linux desktop deployment, so it was easy to 
dedicate some of my time to the wiki, and to maintaining Gambas packages 
for Mandrake, and to writing gb.pcre and working on other components my 
clients needed.  Now the push for Linux desktops has turned into a push 
for thin clients and web-based applications, at least where I am, so 
Gambas is back to being just a personal interest of mine that takes up 
some of my left over free time.  If your situation affords you more time, 
I hope you'll step up.

Rob

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with gambas wiki web site

2008-12-14 Thread Rob
On Friday 12 December 2008 11:30, Benoit Minisini wrote:
> Apparently gambasdoc.org does not answer anymore, nor kudla.org, the
> domain where you can write to Rob Kudla, the gambasdoc.org server owner.
> If you read that Rob, please tell us what happens!

We had an ice storm here in the northern part of New York.  My company's 
servers were completely offline for at least a day.  I still have no power 
(or heat, or net connection) at home, they don't know whether it'll be 
back in 2 hours or 2 days, and it's about 5 degrees C there.  Now I'm 
staying with a friend and this is the first time I've gotten online since 
Thursday night.  

I imagine the outage lasted long enough that some mail to me must have 
bounced.  I see some gaps in the delivery times on my Linux mailing lists.  
This is a very uncommon occurrence (first power failure longer than 7 
hours I've ever experienced) but obviously I need to prepare better for 
power outages.  It looks like the site's back up now, anyway.  Let me know 
if anything acts strangely.

Rob

--
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] URL encoding "%20"

2008-12-30 Thread Rob
On Tuesday 30 December 2008 08:03, werner 007 wrote:
> Ok, i got the answer by my self.
> The chars of not printable and non-ascii are represented as Hex.
> To convert it back:

That'll work, but it'll also run Replace() 160 times each time you do a 
conversion.  I'd do something like this:

function urlencode(strin as string) as string
dim strout as string
dim i as integer
dim a as integer
for i = 1 to len(strin)
a = asc(mid(strin, i, 1))
if a < 33 or a > 126 then
   strout = strout & "%" & Hex$(a, 2)
else
   strout = strout & mid(strin, i, 1)
        endif
next
return strout
end

Rob

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


Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-30 Thread Rob
On Tuesday 30 December 2008 15:31, birchy wrote:
> 1) Does Gambas implement the libcurl library or does it use curl via a
> command prompt?

Gambas (specifically gb.net.curl) uses libcurl.

> 2) I have still not found a satisfactory HTML parsing library because
> many of the values i want to extract are within JavaScript tags. Many
> people suggest using BeautifulSoup, but i don't know if i can use this
> within Gambas?? I can parse the document manually using string functions

If the document you want to parse is XHTML, you could try using gb.xml.  
Unfortunately, that seems to be undocumented right now.  

If it's a legacy HTML document, libxml does have an HTML parser available, 
but it seems that gb.xml doesn't expose that functionality at present so 
you'd need to use external function declarations to use it.

Rob

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


Re: [Gambas-user] Web application - CURL and Cookies?

2008-12-30 Thread Rob
On Tuesday 30 December 2008 16:47, birchy wrote:
> I guess that manual parsing with string functions is the only accurate
> way to achieve this.

I'd probably try to write a class that wrapped gb.pcre to do that, but I 
would say that, since I wrote gb.pcre ;)

Rob

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


Re: [Gambas-user] URL encoding "%20"

2008-12-30 Thread Rob
On Tuesday 30 December 2008 19:44, werner 007 wrote:
> First when i read your solution i was thinking "damn, i was lazy to make
> a good job".
> But then, we are not looking for single chars but for three at once.

I misunderstood you, then.  URL encoding is replacing non-printable 
characters with %xx.  URL DEcoding is replacing %xx with the original 
non-printable character.  What I wrote will be fine for encoding and what 
you wrote in this response will be fine if you rename the function 
to "urldecode".

Rob

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


Re: [Gambas-user] Gambas2 USB detect !!??

2009-01-02 Thread Rob
On Friday 02 January 2009 12:54, Biggy UAC wrote:
> in my application i want to detect usb flash drive when pluged/unpluged
> and display in a textbox usb drive letter.
> how to detect usb drive stick plug/unplug in gambas2 ??

Linux doesn't have drive letters, but you should be able to get the device 
name (e.g. /dev/sde) in a couple of different ways.

The correct way to do it is to set your program up as a hotplug agent for 
USB drives using udev (probably putting a file in /etc/udev/rules.d).  But 
doing that may screw up your users' normal hotplug functionality (i.e. KDE 
or GNOME asking the user what they want to do with the drive.)  Google for 
udev hotplug for more information on this, because I've never done it 
myself.  Also, on older systems the devfs system was used rather than udev 
and you'd need to deal with /etc/hotplug/usb.usermap (I think.)

Another way, less intrusive but by no means foolproof, is to have a process 
running in your Gambas program, "tail -f /var/log/messages" 
or "tail -f /var/log/syslog".  Here is what appeared in /var/log/messages 
last night on one of my Mandriva boxes when I attached my Archos hard disk 
jukebox:

Jan  1 20:46:59 raindog2 kernel: usb 5-5: new high speed USB device using 
ehci_hcd and address 7
Jan  1 20:46:59 raindog2 kernel: usb 5-5: configuration #1 chosen from 1 
choice
Jan  1 20:46:59 raindog2 kernel: scsi7 : SCSI emulation for USB Mass 
Storage devices
Jan  1 20:47:04 raindog2 kernel:   Vendor: ArchosModel: PC Hard Drive 
Rev: 0316
Jan  1 20:47:04 raindog2 kernel:   Type:   Direct-Access  
ANSI SCSI revision: 02
Jan  1 20:47:04 raindog2 kernel: SCSI device sdh: 312175080 512-byte hdwr 
sectors (159834 MB)
Jan  1 20:47:04 raindog2 kernel: sdh: Write Protect is off
Jan  1 20:47:04 raindog2 kernel: sdh: assuming drive cache: write through
Jan  1 20:47:04 raindog2 kernel: SCSI device sdh: 312175080 512-byte hdwr 
sectors (159834 MB)
Jan  1 20:47:04 raindog2 kernel: sdh: Write Protect is off
Jan  1 20:47:04 raindog2 kernel: sdh: assuming drive cache: write through
Jan  1 20:47:04 raindog2 kernel:  sdh: sdh1
Jan  1 20:47:04 raindog2 kernel: sd 7:0:0:0: Attached scsi removable disk 
sdh

If you look for the words "Attached scsi removable disk" in the output of 
that tail -f, the next word in that line should be the device name of the 
drive.  I haven't hooked any USB drives up to my Ubuntu server since I 
upgraded so I don't know if every distro has logs that look like that, or 
just Mandriva.

Rob

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


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Rob
On Wednesday 14 January 2009 10:00, Gareth Bult wrote:
> >12) I think that Gareth could have made his control database neutral.
> > But it is his code, so he is the boss.
> Gareth subclasses standard Gambas components, so it *is* neutral.
> I can only think he was confused because he saw a SELECT statement and
> assumed this particular to MySQL (!)

Actually, it's LAST_INSERT_ID() that isn't standard SQL.  

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas2 components?

2009-01-14 Thread Rob
On Wednesday 14 January 2009 10:29, Gareth Bult wrote:
> This function would be required regardless of the underlying DB .. so
> what't the PG equivalent ?

By looking at the sqlite docs, I'm guessing last_insert_rowid() is their 
equivalent, but I only have MySQL installed so I can't test it.

But some DB engines don't even have auto-incrementing fields, let alone a 
function to return the last inserted ID.  Google tells me 

CURRVAL(pg_get_serial_sequence('my_tbl_name','id_col_name'))

is the Postgres equivalent, but if it uses sequences, I think that's 
different than what we know as autoincrement fields.  With Firebird, you 
can approximate the functionality with generators, like this:

-- before inserting any rows into table
CREATE GENERATOR generator_id;

-- then, as part of each insert statement
INSERT INTO tablename (keycolumn, ...) VALUES 
(gen_id(generator_id, 1), ...);

-- after all that, here's the LAST_INSERT_ID() equivalent
SELECT gen_id(generator_id, 0);

I have no idea whether this is safe to use with multiple connections (like 
MySQL's is) or anything like that.  I also don't think there's any 
standard ODBC mechanism to do this.

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Component Web Browser

2009-01-15 Thread Rob
On Thursday 15 January 2009 02:24, andy wrote:
> It seems to me some differences in images rendering , comparing with
> same html page in Firefox. It dipends from different backend (Gecko and
> Kde)?
>
> Do u think to improve this component? Thankyou

The gb.qt.kde.html component uses KHTML to render pages.  Other than being 
the rendering engine for Konqueror, KHTML is essentially Webkit, used in 
the iPhone, Safari and Google Chrome.  You would need to talk to the 
KHTML/Webkit developers to request changes in page rendering.

It should be possible to write a different html component using Gecko, but 
I personally don't have time to do that.

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] An other OO problem.

2009-01-20 Thread Rob
On Tuesday 20 January 2009 10:13, Jussi Lahtinen wrote:
> Maybe something like "Returns a copy of the array of object references."
> ? I'm really NOT expert of this topic! I understand that result as
> shallow copy, as the way that wikipedia describe it (
> http://en.wikipedia.org/wiki/Object_copy ).

Actually, given the definitions there, what Gambas is doing is a deep copy.

In a shallow copy, there's only one object (array, in this case) when the 
copy is complete, and two references to it (and the originally declared 
second array's allocated memory is lost to either garbage collection or a 
memory leak), but in a deep copy, there are two independent copies of the 
array when you're done.  In Gambas the latter is true.

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] Broken dependencies in Ubuntu 8.04 packages

2009-01-28 Thread Rob
In both the official 2.0.0 and gnulinex.org 2.8.2 packages for Ubuntu 
Hardy, the gambas2-gb-db package requires gambas2-gb-form and 
gambas2-gb-qt-ext, which requires X to be installed among many other 
things.  So it's not possible to install Gambas with database support on a 
headless Ubuntu web server (like the replacement for the old one currently 
running gambasdoc.org.)  

Also, though I don't know if this is normal, gambas2-gb-gui requires both 
gambas2-gb-qt and gambas2-gb-gtk, which seems like it defeats the whole 
purpose of the gb.gui component (I would think gb.gtk and gb.qt would be 
alternatives rather than both required.)  Finally, gambas2-runtime itself 
requires xdg-utils, which should only be necessary for gambas2-gb-desktop 
if I'm not mistaken.

I don't have an 8.04 workstation around anymore to build on; all my Ubuntu 
machines are 8.10 at present except for that one server (which has to be 
8.04 due to LTS.)  I attached what I think is a fixed debian/control file.  
Could someone with access rebuild the Hardy 2.8.2 packages with it?  I'll 
try to get Hardy installed on a workstation so I can rebuild them if no 
one else has time.

Thanks
Rob
Source: gambas2
Section: devel
Priority: optional
Homepage: http://gambas.sourceforge.net
Maintainer: Daniel Campos 
Build-Depends: debhelper (>> 4.2.0), libpq-dev, libmysqlclient15-dev, 
libbz2-dev, libqt4-dev, libcurl3-dev, libsdl-mixer1.2-dev, libsqlite0-dev, 
libxml2-dev, libxslt1-dev, kdelibs4-dev, libssl-dev, zlib1g-dev, unixodbc-dev, 
libsqlite3-dev, libgtk2.0-dev, libxt-dev, pkg-config, mesa-common-dev, 
libsdl-sound1.2-dev, libsdl-image1.2-dev, libsdl-gfx1.2-dev, libsdl-ttf2.0-dev, 
libpcre3-dev, libsdl1.2-dev, libjpeg62-dev, libpng12-dev, libpoppler-dev (>= 
0.5), firebird2.0-dev, librsvg2-dev, bzip2, dpatch, gettext, libxtst-dev, 
libffi-dev
Standards-Version: 3.8.0

Package: gambas2
Architecture: all
Section: devel
Depends: gambas2-doc (>= ${source:Version}), gambas2-gb-chart (>= 
${source:Version}), gambas2-gb-compress-bzlib2 (>= ${binary:Version}), 
gambas2-gb-compress-zlib (>= ${binary:Version}), gambas2-gb-crypt (>= 
${binary:Version}), gambas2-gb-db-firebird (>= ${binary:Version}), 
gambas2-gb-db-form (>= ${source:Version}), gambas2-gb-db-mysql (>= 
${binary:Version}), gambas2-gb-db-postgresql (>= ${binary:Version}), 
gambas2-gb-db-odbc (>= ${binary:Version}), gambas2-gb-db-sqlite (>= 
${binary:Version}) | gambas2-gb-db-sqlite2 (>= ${binary:Version}), 
gambas2-gb-desktop (>= ${binary:Version}), gambas2-gb-form (>= 
${source:Version}), gambas2-gb-form-dialog (>= ${source:Version}), 
gambas2-gb-form-mdi (>= ${source:Version}), gambas2-gb-gtk-ext (>= 
${binary:Version}), gambas2-gb-gtk-svg (>= ${binary:Version}), gambas2-gb-gui 
(>= ${binary:Version}), gambas2-gb-image (>= ${binary:Version}), 
gambas2-gb-info (>= ${source:Version}), gambas2-gb-net-curl (>= 
${binary:Version}), gambas2-gb-net-smtp (>= ${binary:Version}), 
gambas2-gb-opengl (>= ${binary:Version}), gambas2-gb-pcre (>= 
${binary:Version}), gambas2-gb-pdf (>= ${binary:Version}), gambas2-gb-qt-ext 
(>= ${binary:Version}), gambas2-gb-qt-kde-html (>= ${binary:Version}), 
gambas2-gb-qt-opengl, gambas2-gb-report (>= ${source:Version}), gambas2-gb-sdl 
(>= ${binary:Version}), gambas2-gb-settings (>= ${source:Version}), 
gambas2-gb-vb, gambas2-gb-v4l (>= ${binary:Version}), gambas2-gb-web, 
gambas2-gb-xml-rpc (>= ${binary:Version}), gambas2-gb-xml-xslt (>= 
${binary:Version}), gambas2-ide (>= ${source:Version})
Description: Complete visual development environment for Gambas
 Gambas is a free development environment based on a Basic interpreter
 with object extensions, like Visual Basic(tm) (but it is NOT a clone!).
 With Gambas, you can quickly design your program GUI, access MySQL or
 PostgreSQL databases, pilot KDE applications with DCOP, translate your
 program into many languages, and so on...
 .
 This package doesn't include anything: it is a metapackage to install the
 IDE and all the available gambas components..

Package: gambas2-dev
Architecture: any
Section: devel
Depends: ${misc:Depends}, ${shlibs:Depends}
Description: Gambas compilation tools
 Gambas is a free development environment based on a Basic interpreter
 with object extensions, like Visual Basic(tm) (but it is NOT a clone!).
 With Gambas, you can quickly design your program GUI, access MySQL or
 PostgreSQL databases, pilot KDE applications with DCOP, translate your
 program into many languages, and so on...
 .
 This package includes the gambas compiler, archiver and informer.

Package: gambas2-doc
Architecture: all
Section: doc
Depends: iceweasel | www-browser
Description: Gambas documentation
 Gambas is a free development environment based on a Basic interpreter
 with object extensions, like Visual Basic(tm) (but it is NOT a clone!).
 With Gambas, you can quick

Re: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages

2009-01-28 Thread Rob
On Wednesday 28 January 2009 20:09, Benoit Minisini wrote:
> As for xdg-utils, gambas2-runtime uses it to install gambas mime files.

Is it really required?  Because if so, then it's no longer possible to 
install Gambas on a command-line only machine since xdg-utils requires an 
X server, Konqueror, Firefox, GNOME, etc., and it's not going to be viable 
as a web scripting language.

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages

2009-01-29 Thread Rob
On Thursday 29 January 2009 07:41, Ron_1st wrote:
> Requires or depends, thats the question.

When speaking in terms of package managers, there's no practical 
difference.

> however for package xdg-utils
>   suggested: desktop-file-utils/kdelibs/konqueror/lib.../menu
>   recommended: file/iceweasel or -browser/mime-support/x11-...
> No required or dependency package
> At my box not all suggested are installed.
> xdg-utlis should be safe to install without X/KDE/Gnome as I understand
> an no problem for gambas-runtime to requires it.

Found my problem there.  I was using aptitude instead of apt-get when I 
tried to install xdg-utils.  I thought aptitude was just a newer version 
of apt-get with some extra info, but apparently it does things like 
treating recommended packages as mandatory unless you use -R.  Now I'll 
know better but it still seems to me like xdg-utils should be a 
recommended package for gambas2-runtime and not a dependency.

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Broken dependencies in Ubuntu 8.04 packages

2009-01-29 Thread Rob
On Thursday 29 January 2009 09:38, Benoit Minisini wrote:
> xdg-utils are just shell scripts. These scripts detect the current
> desktop environment when they are run, and execute desktop-specific
> commands according to what they detected.
> So making them depends on X11 or any desktop environment is a mistake
> IMHO.

Well, it turns out I was misunderstanding Aptitude and those are 
only "recommended" packages for xdg-utils.  So the only real issues are 
gambas2-gb-db requiring gambas2-gb-form and gambas2-gb-qt-ext, and gb.gui 
requiring both gambas2-gb-gtk and gambas2-gb-qt (instead of just one or the 
other.)

Rob

--
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] License of Gambas Logo

2009-02-04 Thread Rob
On Wednesday 04 February 2009 11:35, Charles Capaday wrote:
> Are you writing the long awaited book of Gambas? This would be a major
> thing for the language and the potentially huge community out there. As
> it stands and as wonderful as it is, it is something for geeks only...

There's already been one such book, the Beginner's Guide to Gambas, though 
it was written circa version 1.0 as you can tell from the presence of the 
old logo.  But, glad to hear of another.

http://www.amazon.com/Beginners-Guide-Gambas-Programming/dp/0741429489

PDF here:

http://vectorlinux.osuosl.org/Uelsk8s/gambas-beginner-guide.pdf

Rob

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Re; Threads ...

2009-02-05 Thread Rob
On Thursday 05 February 2009 20:46, Gareth Bult wrote:
> I'm trying to decide whether to try Gambas for a Web project because
> I've seen people mention that one of the design features (?) was that it
> could run web server type applications (?) 

Gambasdoc.org actually runs on a Gambas web application written by Benoit.  
You can find its source as app/src/doc.cgi in the Gambas tarball.

> .. I'm thinking multiple 
> threads could be emulated by running the application a number of times
> and using some sort of IPC mechanism to share session information ... is
> there a more elegant solution to the problem of serving pages / IO
> blocking?

You're talking about writing an actual HTTP daemon in Gambas?  I don't 
think that's really necessary, but it's been done in Perl, Python, etc. 
for particular applications.

If you're going to start multiple copies of the program to simulate 
multithreading, you might as well just run it as an xinetd service using a 
file or database store for session information.

Rob

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] License of Gambas Logo

2009-02-07 Thread Rob
On Saturday 07 February 2009 10:37, Charles Capaday wrote:
> A final but unrelated point that has been at the back of my mind for
> some time now, is there any possibility that Gambas will eventually be a
> completely compiled language (like, say, Power Basic for windows)?
> Perhaps the developers can answer this

While I'd love to see the Gambas interpreter and components available in a 
statically linked form that could be embedded with a project into a 
self-contained executable file (as with Tcl and Python), I really question 
whether the performance increase produced by native code compilation would 
be enough to justify dealing with all the issues it would cause.  The vast 
majority of what Gambas does is calling external libraries which are 
already native code.

Rob

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] is it possible? make gambas project a library

2009-02-09 Thread Rob
On Monday 09 February 2009 14:44, Joshua Higgins wrote:
> What I'm wondering is this: is it possible to create a gambas project
> into a library suitable for use in other programming languages? So for
> example my gambas UDP routines can be used from another program
> language?

You would have to build a shared object version of the Gambas interpreter 
and come up with an API to allow access to the classes and other symbols 
in Gambas projects through the library interface.  It wouldn't be easy, 
especially if your name is not Benoit, but it would also be a first step 
towards the creation of Gambas-based plugins for other programs (e.g. 
Firefox or various audio programs), Gambas applets for environments that 
require .so files (like the KDE panel), or even standalone Gambas 
executables.

Rob

--
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GTK problems (License)

2009-03-09 Thread Rob
On Monday 09 March 2009 05:53, wig wrote:
> GPL and LGPL ... no reason any more to "avoid" QT as far as I know.

Well, once Gambas starts using Qt 4.5.

I haven't avoided Qt since the GPL dual-licensing kicked in years ago, but 
I can understand why someone who wants to make proprietary software with 
Gambas would do so.

Rob

--
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Help using gb.pcre

2009-03-10 Thread Rob
On Tuesday 10 March 2009 15:44, David Villalobos Cambronero wrote:
> Hi, I need to match some regular expresions, I think I can use Gambas to
> do it, in the documentation says somethig like this:
> (?i)\b[a-z0-9._%\...@[a-z0-9._%\-]+\.[a-z]{2,4}\b
> But how can I use it, any idea?

That regular expression is meant to extract a valid email address.  (It may 
not be a working email address, but it should at least be legal.)

One thing I should probably make clearer in the documentation is that due 
to the way Gambas uses character constants like \n, you need to double up 
on backslashes when you're specifying a regular expression as a constant.  
So if the user is entering it or you're reading it from a file, it might 
be a\s+(b\S+) but if you're hardcoding it into your program it needs to 
be "a\\s+(b\\S+)".  Here is a Gambas script to demonstrate (just tried it 
in my own console and it runs in 2.9, but watch out for my email client's 
word wrap.)

USE "gb.pcre"

DIM myemail AS String
DIM validemail AS String
DIM re AS RegExp

myemail = "f...@bar" 

re = new RegExp(myemail, "(?i)\\b[a-z0-9\\._%\\...@[a-z0-9._%\\-]+\\.[a-z]
{2,4}\\b")
validemail = re.Text
if not validemail then
print myemail & " is not a legal email address.\n"
else
print myemail & "\n"
end if

Rob

--
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] analyzing version numbers in gambas

2009-03-25 Thread Rob
On Wednesday 25 March 2009 11:29, Ron wrote:
> > I guess, in these cases, you can use the Val() function.
> Do a replace to remove the . then 12 is less(older) then 135.

That only works if all the versions are part of the same major release.  21 
is less than 135 too...

In Perl, I would do something like this:

($maj, $min) = split(/\./, $version);
$sortableversion = sprintf("%05d.%05d", $maj, $min);

I think you could do much the same in Gambas but it would take more lines, 
two Format() calls instead of just a sprintf, and you'd be using an array 
rather than two strings.

Rob

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


Re: [Gambas-user] analyzing version numbers in gambas

2009-03-25 Thread Rob
On Wednesday 25 March 2009 13:19, M0E.lnx wrote:
> I'm not dealing with my own version numbering here... I'm trying to
> analize all versioning schemes if at all possible.

It's not possible.  2.5 and 2.10 in the Gambas numbering scheme mean 
different things than 2.10 and 2.5 in some other developers' schemes, and 
you can't derive it without observation and manual intervention.  Then you 
have the projects who change their numbering schemes in midstream, like 
pan (0.133 is newer than 0.142) and others have done.

Rob

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


Re: [Gambas-user] analyzing version numbers in gambas

2009-03-25 Thread Rob
On Wednesday 25 March 2009 13:54, M0E.lnx wrote:
> I guess I would have thoutht there was something that could analize
> something like "2.12" and "2.5" as floats and see which one is the
> largest of the 2

Well, the problem with that is that 2.5 really is the larger of the two if 
you treat them as floats, but is the earlier version number in the 
numbering schemes that are currently in fashion.

Rob

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


Re: [Gambas-user] A way to compile, make exec, and create package from outside IDE?

2009-04-04 Thread Rob
On Saturday 04 April 2009 16:02, jbskaggs wrote:
> I am working a game maker program- and I am trying to determine my next

This sounds like a good idea, since Linux doesn't have too many tools like 
this and I don't think any are free software.

> What I want to do is have my program write all the code into a class
> file and then shell to Gambas load the file compile, make exec and
> package.
>
> IS there a way to do this in my program at runtime or does this have to
> be done in the Gambas IDE Console only?

Some of it can be done pretty easily through shell commands.  You generate 
your Gambas project (I think it needs to be a whole project, including 
a .project file, not just a class file), then change to that directory and 
run these commands:

gbc2
gba2

gbc2 compiles the project, gba2 makes the executable.  

However, building packages is another story.  You may want to try to copy 
the package building code out of the Gambas IDE and integrate it into 
yours... or maybe work on making it into a component to be used by all 
Gambas programs.

Rob

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


Re: [Gambas-user] In simple English could someone explain what the h does in instanciation?

2009-04-05 Thread Rob
On Sunday 05 April 2009 23:15, jbskaggs wrote:
> dim hTextbox1 as Textbox
> vesus
> dim myTextbox1 as Textbox
> What is happening with these two different statements?

The first one creates a new textbox object called hTextbox1.  The second 
creates a new textbox object called myTextbox1.  

The use of "h" in object variable names is just a convention ("h" usually 
meaning "handle", like "p" or "ptr" in C programs usually 
means "pointer"), not syntactically significant.

Rob

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


Re: [Gambas-user] [Gambas Bug Tracker] Bug #826: Redirect links to gambasdoc.org/lang to gambaswiki/wiki/lang

2016-04-07 Thread Rob Kudla
On 10/27/2015 03:03 AM, Christof Thalhofer wrote:
> Thanks. Do you know Robert Kudla?

I know I'm late to the party, but I'm Rob Kudla. I owned the gambasdoc.org
domain name for its entire existence, and hosted the gambas wiki on one of
my company's ancient colocated servers. (I also contributed some seriously
terrible code in the form of the original gb.pcre module.)

Unfortunately, sometime last year our colo servers disappeared from the
net, and after a bunch of fingerpointing, we never did get the servers nor
their disks back. (I have at least a dump of the gambasdoc database
somewhere, but it sounds like a redirect is more in order anyway.) My own
personal domain was also affected, and is still offline a year later.

I'd offered for 3 years in a row to transfer the domain to Benoit or
someone else, but no one ever made it happen. I just noticed the domain had
expired, and thought I'd check in to see if anyone had written me an email
about it at this address, which I don't really check anymore because Gambas
was my last project on Sourceforge and I haven't used it (er, sorry...) for
5 or 6 years now.

It's still in the grace period, so if you or someone else who's been
complaining about the links being broken would like to register it and have
me transfer it to you, you'd be welcome to. But currently I can't afford to
renew it myself, nor provide hosting. I think the grace period goes for
another 4 days, so if you'd like it, you'd better move fast. If I don't
respond to emails here, send to lists at my last name dot org and I'm more
likely to see it (unless your domain is sourceforge.net in which case it'll
be marked as read automatically).

I'd like to thank Benoit, Fabien and the other main contributors for making
Gambas as useful to me as it was for all those years, but I'm pretty much a
web+mobile guy at this point (wrote one desktop app for my wife last year,
but it was for the Raspberry Pi in python... which I gotta say kinda sucks,
in my book. Not the Pi, but python.) I wish there were other IDEs in the
free software world that were as full-featured and nimble as Gambas, but
I've returned to my 25-year emacs habit in their absence.

Rob


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


Re: [Gambas-user] Microsoft Access database

2013-08-13 Thread Rob Kudla
On 2013-08-13 09:31, Bruce wrote:
> a) MSAccess did/does not run as a server process, especially to remote 
> machines.  In order to get it to that we had to use ODBC and establish
> a connection process on the "server" and similarly an ODBC client on
> the remote "client" machine. In the case of a single connection to the 
> "server" this was reasonably trivial, but if multiple "clients" were 
> involved this bordered on a nightmare.

This can't be stressed enough. Furthermore, if Access is actually running
on the remote machine as Ivan said, that counts as a client. If you access
the database via ODBC at the same time as through Access itself, whether
your ODBC client is VB, Gambas or anything else, you risk corruption. Like
sqlite, Access is designed for single-user data storage, even if Microsoft
has added features over the years to make it seem otherwise.

I did a project exactly like this about 8 years ago, and we ended up
moving the data into a MySQL server, converting the tables to ODBC links
using some Access macro we found in a MySQL forum, and accessing the MySQL
data natively from Gambas and a web inquiry system. Even so, Access
misbehaved constantly and made it a nightmare.

Multi-user networked database applications need a multi-user networked database
server. Period.

Rob

--
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://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas doc down?

2013-09-02 Thread Rob Kudla
On 2013-09-02 18:38, Jussi Lahtinen wrote:
> I can't connect to www.gambasdoc.org , anyone knows what's wrong?

Comes right up for me, but then, it's our server. Are you still unable to
connect?

Rob


--
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas doc down?

2013-09-09 Thread Rob Kudla
On 2013-09-09 17:54, Jussi Lahtinen wrote:
> Any DNS server suggestions?

I'm happy with Google's. Started using it when our ISP switched us to a
really flaky server, and when I encountered bad DNS in a number of hotel
rooms I just went and hardcoded them.

8.8.8.8
8.8.4.4

Rob

--
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=5127&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambasdoc.org is off

2013-09-27 Thread Rob Kudla
On 2013-09-27 10:02, Wellington de Souza Pinto wrote:
> The gambasdoc.org site is off now.

Are you using OpenDNS? Their users have been reporting problems since we
moved DNS servers a month ago but no one else to date has complained.

One of our two DNS servers is timing out, which most other DNS servers
work around but OpenDNS is stricter. I have no control over the DNS
situation -- that's the price of getting hosting as a favor -- and the
people who do are working on a much bigger problem that doesn't affect
gambasdoc.org, so OpenDNS users can either switch to a different public DNS
(I use Google, 8.8.4.4/8.8.8.8) or add the following:

64.128.110.55 gambasdoc.org www.gambasdoc.org

to your hosts file.

Rob

--
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=60133471&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambasdoc.org is off

2013-09-29 Thread Rob Kudla
On 2013-09-27 11:05, Rob Kudla wrote:
> One of our two DNS servers is timing out,

Today I updated the bad second DNS server record in the domain to use the
first DNS server on a different IP address. It's not a good solution, but
hopefully it'll improve the situation until the second server gets put back
online. The whois record has been updated but it'll take a day or two for
the change to propagate to the rest of the net.

Rob

--
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=60133471&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas in a tablet. Is it possible?

2013-10-31 Thread Rob Kudla
On 2013-10-31 04:43, Jose Monteiro wrote:
> Is it possible to install Gambas over Android?

If you install an Ubuntu chroot or virtual machine, sure, just apt-get it.
None of the toolkits are optimized for touch but I assume Ubuntu has done
something to make Gtk touch-friendly for their stuff, since tablets are one
of their target platforms. So maybe it'd work with some judicious app design.

But there's no native Android Gambas interpreter yet, and without X or even
glibc, I'm not sure there ever will be. It would be almost as big a job as
a Windows port, which has been tried numerous times without getting further
than a proof of concept.

You can replace Android on many devices with a full Ubuntu ARM
installation, but you'll usually do so at the expense of some hardware
functionality, such as accelerated graphics or Bluetooth.

Rob

--
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=65839951&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas in a tablet. Is it possible?

2013-10-31 Thread Rob Kudla
One way you could get a virtual keyboard and mouse input is to use one of
the Linux installers available on Google Play (preferably a free one; I've
never heard a good recommendation for any of the pay ones) and access the
Gambas app using VNC. In the past, users getting Gambas apps to be useful
on Windows desktops have configured VNC servers to only serve their Gambas
apps, and Android VNC viewers generally have virtual mouse and keyboards. I
think most of the Linux installers set up VNC by default as a way to access
Linux desktop apps from the Android side.

Running an Android X server app in conjunction with one of those Linux
installers would be another option, probably a cleaner one, but that's one
I haven't tried. I've had clients in the past who ran Linux desktop apps on
a terminal server and displayed them on Windows desktops this way. Ethernet
connections made doing that feel like they were running natively. Doing it
on the same host, as you would be in this case, should be faster still.
It's possible to set a Gambas up as a display manager, allowing you to make
it full screen and feel a little more like a native app.

https://play.google.com/store/apps/details?id=au.com.darkside.XServer

Running Linux in a chroot (as many Android Linux installers will set up for
you) will probably give you far better performance than a virtual machine
as long as you have a device with multiple cores. The only advantages a
virtual machine would give you in exchange for the performance hit would be
the lack of a need for a separate display app (if the virtual machine you
choose has a virtual keyboard -- the ones I'm seeing on Google Play
currently don't, but you could always install "onboard" on your virtual
Linux box or build a virtual keyboard into your Gambas app) and it
shouldn't require root, which the rest of these solutions all would.

As you can see, there's no easy turnkey solution, but a number of
possibilities. Personally, I'd go with something like Phonegap, which just
uses Javascript/jquery and HTML, if I wanted to write Android apps (at
least the kind of app I would have used Gambas for on the Linux desktop)
without dealing with Java. You can even put them in Google Play if you want.

Rob


On 2013-10-31 09:28, Jose Monteiro wrote:
> Thank you Rob, for your quick reply.
> 
> A Virtual Machine as one of the possible solutions, you said? 
> Interesting, but I guess free RAM would be a bottle neck. I could test 
> this, for sure.
> 
> If a full Ubuntu ARM installation could preserve the touch screen 
> functionality AND the virtual keyboard, this software is completely 
> possible.
> 
> Maybe I need to think a little harder about it.
> 
> 
> 
> 
> 
> On Thursday, October 31, 2013 9:31 AM, Rob Kudla 
>  wrote:
> 
> On 2013-10-31 04:43, Jose Monteiro wrote:
> 
>> Is it possible to install Gambas over Android?
> 
> If you install an Ubuntu chroot or virtual machine, sure, just apt-get 
> it. None of the toolkits are optimized for touch but I assume Ubuntu has
> done something to make Gtk touch-friendly for their stuff, since tablets
> are one of their target platforms. So maybe it'd work with some 
> judicious app design.
> 
> But there's no native Android Gambas interpreter yet, and without X or 
> even glibc, I'm not sure there ever will be. It would be almost as big a
> job as a Windows port, which has been tried numerous times without 
> getting further than a proof of concept.
> 
> You can replace Android on many devices with a full Ubuntu ARM 
> installation, but you'll usually do so at the expense of some hardware 
> functionality, such as accelerated graphics or Bluetooth.
> 
> Rob
> 
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
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=65839951&iu=/4140/ostg.clktrk
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
___
> Gambas-user mailing list Gambas-user@lists.sourceforge.net 
> https://lists.sourceforge.net/lists/listinfo/gambas-user 
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> 
Android is increasing in popularity, but the open development platform that
> developers love is also attractive to malware creators. Download this 
> whit

Re: [Gambas-user] Gambas Future: shift away from Linux?

2013-11-04 Thread Rob Kudla
On 2013-11-04 06:38, François Gallo wrote:
> I don't care to have a lot of users from Windows or OS X who use Gambas 
> :-) . This is not my goal. My goal is just to be able to run Gambas 
> applications without imposing choices.

Well, we can debate whether a given port should or shouldn't happen until
we're blue in the face, but none of it matters until someone writes the
code! Others have tried Windows ports before but never got very far.

It's just not going to be a priority for those of us who have been running
nothing but Linux for a decade or more. I was interested for a few years
when I had clients with heterogenous desktop environments, but
cross-platform desktop development has largely moved to the web.  I'd be
more interested in seeing an Android port, yet not interested enough to try
it myself (so far).

Rob

--
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=65839951&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A little article on Gambas on Phoronix

2013-11-26 Thread Rob Kudla
On 11/26/2013 01:57 PM, ukimiku wrote:
> I don't plan on programming "mission-critical" tasks anytime soon,
> anyhow :)

I have written mission-critical, shut-the-place-down-if-it-fails apps in
Gambas. They were for the companies that paid for them to be written, not
publicly released software, but they were mission-critical nonetheless.

I don't use Gambas much anymore, but anyone who says it's not for
professional use is simply massaging reality to fit his preconceived
notions. It's not as big as VB (which many would also say is not for
professional use, despite the enormous number of proprietary packages
written in it) because desktop Linux isn't as big as Windows. That's all.

On 11/26/2013 02:10 PM, Randall Morgan wrote:
> I remember a time when PHP and Python were both considered by many to
> be "toy" scripting languages

Oh, there are plenty of those people still around. Usually, they use a
different scripting language than the one they're maligning, or are
functional programming snobs, or ivory-tower CS jobs. Most people I've met
in IT are a little more technology-agnostic, though of course a lot of
Windows folks aren't too fond of Linux stuff and vice versa.

Rob

--
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=84349351&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] A little article on Gambas on Phoronix

2013-11-27 Thread Rob Kudla
On 11/27/2013 03:18 PM, Randall Morgan wrote:
> When I think of mission critical, I think of things that could cost
> someone's life if failure occurred. Things like, aircraft guidance systems,
> embedded medical devices, automotive steering and breaking systems, rail
> switching systems, etc. 

Those are actually a separate class, usually called "life-critical". A lot
of proprietary software packages have EULAs that actually forbid their use
in such applications. And while I don't know about Gambas, I've been aware
of a frightening number of medical software packages with at least a VB
interface, including my late partner's ICD's control software, complete
with VBRUN600.dll (pretty sure the software in the ICD itself wasn't VB,
but in non-implanted devices it might be -- and in any case, I'm betting it
wasn't ADA).

> You can argue that almost any software is mission
> critical for it's mission. 

Nope, "mission-critical software" is a term of art that means "software
critical to the operation of a business". For Amazon, a web server is
mission-critical, as is whatever they use to handle fulfillment so quickly.
For banks, there's the core system, teller interface and whatever other
ancillary systems without which they can't open for business, written in
languages that range from RPG to Javascript. For a recording studio, it's
something like Protools or Ardour, especially once enough projects are in a
given tool's format that switching would require days or weeks of work. And
for Benoit's company, it's the software he wrote in Gambas.

I once worked for a company whose most mission-critical software was a
Lotus spreadsheet macro that they had overgrown, causing the data to
overwrite the "code". Yes, really. They were dead in the water without it,
sent everyone home, couldn't so much as access their customer list or open
orders. I fixed it for them in a few days, converted it to a DBMS with a
nice Turbo Pascal client, but it just goes to show that mission-critical
software depends on what the business needs, not what's stable, secure or
even sane.

(No Z80 machines in my past except a Colecovision, but I had at least 5
6502-based ones... still really enjoy that flavor of assembly language,
especially with modern macro assemblers.)

Rob


--
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=84349351&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Web apps

2013-11-29 Thread Rob Kudla
On 11/29/2013 03:39 PM, John Rose wrote:
> I have a rather naive question. I presume that Gambas would also be good
> for developing client-server apps e.g. with a database resident on a
> server. Can Gambas be used to develop web apps i.e. where all the logic
> is on the server?

Yes, the Gambas documentation wiki is a CGI program written in Gambas. I
think the source is included in the Gambas tarball as an example, or used
to be.

You can also implement a web server in Gambas, and I seem to remember
someone implementing "Gambas Server Pages", though I think intermingling
code and HTML is bad practice for all but the most trivial applications.

I've long thought about coming up with a way to translate gb.qt/gb.gtk
programs into gb.web programs with Javascript on the client side to forward
events back to the server for handling. Maintaining state would be an issue
(a CGI normally runs once, sends HTML to the client and exits, while a
Gambas desktop program normally runs as a single instance for the user's
entire interaction, keeping database handles open, drawable objects in
memory, remembering things as basic as cursor position, etc.) and what
works well in a desktop paradigm will usually not make for a very good
HTML5 app. Plus, it probably would have sucked, especially if you had
something like a MouseMove event handler that caused the Gambas CGI to load
and run every time it fired.

Rob

--
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=84349351&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gambas documentation offline include in source (gb.web)

2013-11-30 Thread Rob Kudla
On 11/30/2013 11:59 AM, PICCORO McKAY Lenz wrote:
>> Yes, the Gambas documentation wiki is a CGI program written in
>> Gambas. I think the source is included in the Gambas tarball as an
>> example, or used to be.
> Could be possible to buld the documentation locally? if are atached to 
> the sources?

Should be... I did apt-get source gambas3 and the source for the program is
here inside the tarball:

gambas3-3.1.1/app/src/doc.cgi/

> this could solve the problem of online documentation ... for me will be 
> very usefully when i go in a journey to Tepuys, where no are a interenet
> connection.

This might help. It seems to be only English (I didn't realize when I
started that it doesn't give you the language links if you're using a
crawler, and the English version alone took half an hour to crawl from a
host on the same subnet as the server) but I hope it'll get you started.
Works well on my own laptop. It's 23.1 MB, expands to 83.

http://www.gambasdoc.org/gambasdoc-static-20131130.tar.gz

Rob

--
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=84349351&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-13 Thread Rob Kudla
On 12/13/2013 02:33 AM, //SCLPL/ Sudeep Damodar wrote:
> dnt have any idea about Gambas.so i have   vb6 project .so i have to know
> about how to directly convert vb6 project to Gambas.can you have any option
> like this in Gambas

I started writing such a thing 10 years ago, for .vbp and .frm files, but
it was for gambas2 so you might not have much luck making it work with
gambas3.

I haven't used Gambas myself in years, so I'm afraid you're on your own if
you run into trouble, unless someone else here still uses it. It definitely
will not work if you use a lot of third party VB controls.

http://gambas.8142.n7.nabble.com/ANN-ImportVBProject-0-0-8-td7076.html

Rob


--
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=84349831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] how to convert VB Project file to Gambas

2013-12-13 Thread Rob Kudla
On 12/13/2013 08:30 AM, Jussi Lahtinen wrote:
> Rob, you haven't use Gambas for years?

Nope, don't even have Gambas installed anywhere except on the host that
runs gambasdoc.org.

I still think Gambas is a great language (I'm still reading the list every
day, after all) and if I were writing desktop software anymore, that's what
I'd use. For web stuff I use regexes enough that perl is nicer to deal with
(I don't know if Gambas has a regex operator now instead of using my
terrible component, but at the time it didn't.) Mobile's a different story,
but since Gambas doesn't work on Android yet, I've gotten very used to Java
and obviously there's a huge critical mass of support in place for that.

Anyway, the converter I wrote only operated on project files and form
layout files, not code. Converting VB code automatically isn't realistic
because they're really two very different languages. It's a porting job. I
just wanted to automate the grunt work. I also wrote a perl script to
convert my Gambas forms to HTML forms, but it used a Javascript library
that was very buggy and is no longer maintained. And before all of that I
wrote scripts to convert MS Access forms to VB. I do these things out of
laziness and the fact that I'd almost always rather use a keyboard than a
mouse, so writing code is preferable to dragging and dropping.

Rob


--
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=84349831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] SteamOS and GAMBAS

2013-12-14 Thread Rob Kudla
On 12/14/2013 04:50 PM, Kevin Fishburne wrote:
> SteamOS is Valve's attempt to circumvent the walled 
> gardens that are Microsoft Windows and Apple iOS/OSX and allow the 
> digital distribution of their games though 

...their own walled garden.

I think SteamOS is a great development, but let's not kid ourselves: Valve
is using Linux to push their own DRM-based app store. It's about pushing
Steam, not pushing Linux. I appreciate that they're growing the market for
Linux games, because now there's more than just Icculus porting Humble
Bundle games to Linux. But I think it's telling that they call SteamOS a
"fork" of Debian, and I certainly have no interest in assisting people who
want to create DRM-encumbered Gambas apps.

I think it's more likely that someone who wants to use a high-level
language is going to use C# or VB with Monogame, since it works on not just
Linux but everything from the iPhone to the Ouya, and the form design
advantage that Gambas provides is erased if you're using the SDL/OpenGL
components for your game.

That said, here at home, our next desktop PC will most likely be a Steambox
hooked up to our television.

As for the Gambas packaging question, since it is essentially a console OS,
if Gambas development is supported at all, in all likelihood you'll just
have whatever version of Gambas available that the version of Debian
they're based on does, and you'll need to make your code work on that.
Breaking APIs between minor releases is not going to work, so they'll
probably just pick one and freeze it.

Their beta page says "Most of all, it is an open Linux platform that leaves
you in full control. You can take charge of your system and install new
software or content as you want," and says they use apt for their own
package management. I take that to mean that you'll be able to add your own
software sources and install whatever you like, being cautious not to stomp
on Valve's own ABIs. Whether it'll be easy for your app's non-technical
audience to add your repo and install your stuff -- as easy as it is on
Win8 or OSX or Android, at least -- is another question, but one that
should become clear within the next few months.

Rob


--
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=84349831&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with web site and wiki

2014-01-09 Thread Rob Kudla
On 01/09/2014 04:53 AM, Benoît Minisini wrote:
> Rob, if you read that: can you give me the ownership of 'gambasdoc.org' 
> name so that I make it point to another server?

Sure. I've asked twice on the list for the last few years and not gotten
any offers of a new home, but if you can find hosting I'll be happy to give
it to you. Let me know when you're ready for the transfer code and I'll
email it to you privately.

Rob


--
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=119420431&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Problem with web site and wiki

2014-01-09 Thread Rob Kudla
On 01/09/2014 12:03 PM, Benoît Minisini wrote:
> Maybe he will ask me how much traffic the server will generate, so if 
> you have the information...

Last time I checked (when I last asked the Gambas list for someone to step
up, maybe a year and a half ago) it was about 25GB per month. Drop in the
bucket for a hosting service, but I don't know what your bandwidth there is
like.

I've actually been trying to rsync my personal stuff off of the server in
question since last night, so it's not just you who's sick of the
situation, believe me.

Rob


--
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=119420431&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-24 Thread Rob Kudla
On 01/24/2014 02:03 PM, martin p cristia wrote:
> So Gambas is not THAT easy to install or compile? Well, we're 
> programmers, lets show some effort... Linux hard to install? Ubuntu
> sets a computer up in 20m, and if its a

If they're running Ubuntu, it's just a matter of a few clicks to install
Gambas through the software center. If they're trying to compile the whole
thing from source and are having difficulty, they probably don't need to be
compiling from source anyway. Just because you CAN do something under Linux
that you can't do under Windows doesn't mean that you have to do it.

Packages made with Gambas should automatically have the right dependencies
and the required packages should be pulled in during installation.

I just don't see this as a big issue. Ubuntu, Debian, Suse and Fedora all
include Gambas as part of their package management systems. Those four and
their derivatives cover easily 90% of all desktop Linux users. Yes, there
will be issues with architectures not typical of desktop computers, like
MIPS or ARM. Those aren't officially supported, and it's up to users with
those platforms to get Gambas working on them if the packages automatically
generated by Debian (etc.) don't work.

If you really think Windows development tools are better in that regard,
try getting VB6 running on PowerPC, which was officially supported by
Windows during VB6's lifetime. It never happened. If you google "visual
basic" "powerpc", the fourth hit is actually a Gambas package which runs on
PPC. Today you can make VB.NET apps that run on Windows RT (ARM
architecture) if for some reason you actually wanted to, but I'm also
guessing that never happens with most VB.NET apps because no one really
cares about Windows on ARM except Microsoft.

And even that's a huge step up from the previous second-class Windows port,
WinCE for ARM and MIPS, used up until about a year or two ago on $99
laptops that were punishing to use. I've heard you could write your VB apps
in a certain way and cross-compile them to run under WinCE, but I've never
seen an app built that way.

Gambas programs, on the other hand, will work on any flavor of Linux once
the Gambas interpreter is fully ported. They aren't officially supported,
and on many platforms where the Linux kernel is supported, Gambas will
never work because they're embedded devices without X or (in the case of
Android) even glibc. But the wonder of free software is that anyone can
take the source and make the port if they put enough effort into it. You
can't do that with most Microsoft tools.

> decent one, the only thing you need to know is your time zone.
> Otherwise it is all answered in Askubuntu.

Unfortunately, with laptops (which are most of the PCs sold today), that
isn't always the case. For example, my new Lenovo Ideapad has function keys
that don't even generate keycodes unless you press the Fn button with them;
on their own they do things like adjust volume and brightness. And there's
no SysRq key so no magic key combinations, no NumLock key so there's no
mouse accessibility for when its touchpad goes haywire which is about a
dozen times a day, and the ATI graphic driver has a memory leak resulting
in the X server swapping constantly after about a day, and trying to revert
to the free driver causes the updater to crash in 13.10, and not a single
one of these issues has a solution on AskUbuntu, though several have been
asked and left unanswered. (Don't buy a Lenovo Ideapad.)

Of course, in my Windows days there were many, many issues that couldn't be
solved in online forums, since you had the source to almost nothing and bug
fixes were driven by PR, not technical merit or even, in those days, security.

>From time to time, someone chimes in with "We need to make it as easy to
develop and distribute Gambas apps as it was to develop VB apps", but the
truth is, Gambas is already far more flexible and easy to distribute apps
in than VB6 ever was. You just have to let go of leftover Windows notions
like "setup.exe is the pinnacle of package management" or "applications are
best distributed in one big file containing all the dependencies statically
linked" or "it's up to the compiler's author to port to my non-standard
architecture", because none of those are true.

Rob

--
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=119420431&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] Gambas Future or what kind of Gambas we want.

2014-01-25 Thread Rob Kudla
On 01/24/2014 07:18 PM, Carl Nilsson wrote:
> Rob: ...and so maybe a million new users get introduced to Python - 
> already loaded in the Wheezy RPi distro, not Gambas.  If you want to 
> secure the long term future of Gambas, one of things that must be done 
> is to attract new users.  These new users, like me, are just the ones 
> that don't have the necessary skills or experience to install and update
> Gambas on these platforms.  These architectures are a wave of the
> future.

First of all, as someone who abandoned Gambas app development in favor of
what we now call HTML5 years ago, you're appealing to the wrong guy with
that argument. Python is a capable enough language, though I personally
dislike it due to its retarded indentation requirements (if meta-Q destroys
my program logic, your language has a problem, not me). Bottom line, I
don't have a horse in this race anymore; I'm actually waiting for Benoît to
let me know when to send him the transfer codes for the gambasdoc.org
domain that I've been hosting for the last 9 years since that server is
likely to disappear soon. Desktop apps just haven't been a priority to me
for a long time.

Second, I would argue that the Raspberry Pi isn't "the future", cheap
Chinese Android devices are. Gambas being ported to Android isn't going
to happen anytime soon as despite having a Linux kernel, Android doesn't
even have the most basic GNU libraries (or a replacement for those) that it
would need to be POSIX compliant. Education might be moving toward ARM for
desktops, at least in CS/CSE programs where kids are meant to be hacking,
but the business world isn't, and that's where most of us are coming from.
Most of us have ARM phones and x86/x64 desktops. I have a couple cheap
Chinese Android sticks hooked up to TVs too. I had hopes to use them as
desktop replacements but in their current state (early 2013 vintage)
they're really not. I could put Debian on them but they wouldn't even have
2D video acceleration and I might not be able to get back. (I write my
Android apps in Java, for the most part. What a terrible, verbose,
top-heavy language, but if you use anything else you're stuck with a subset
of the platform's capabilities and good luck finding support.)

As a corollary, even if Gambas is available on those systems, as you say,
Python is installed by default and the Raspberry Pi project pushes it
pretty hard. Students sitting in front of RPis are going to get taught
Python unless their teacher is someone like me who strongly dislikes
Python, and I suspect Gambas isn't going to be the next thing on their
list.

Third, you can't install or update Gambas on a platform on which it doesn't
compile and run, and if you're one of "the ones that don't have the
necessary skills or experience to install and update Gambas on these
platforms", I would hope you'll shell out the 50 bucks to send your pet
hardware platform to someone who volunteers to make it work, or to Benoît
if it's a bigger job than patching out some Intel-architecture-specific stuff.

It isn't like there's a big red "Port to ARM" button that we've all refused
to push out of spite. The developers need the hardware and the time to
figure out what doesn't work and why. Apparently it compiles, because the
packages are available. I don't think any of us had heard it was broken at
runtime until someone reported it earlier in this thread. The bug has still
not been officially reported on http://code.google.com/p/gambas/issues/list
. Developers can't fix what they don't know about, especially if they don't
even own the hardware it fails on.

Isn't there a Raspbian support group or something that has people who know
how to read gcc error messages?

Rob

--
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=119420431&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.db: Primary Key of a INSERT

2014-02-03 Thread Rob Kudla
On 02/03/2014 09:34 AM, Oliver Etchebarne Bejarano wrote:
> How can I obtain the last AUTO_INCREMENT field after I run the 
> Result.Update() on a new registry? I'm using a MySQL db.

On the same connection object, "select LAST_INSERT_ID() from tablename;"

But will Result.Update() insert a new record if the Result object is
pointing past the end of the table? If it will, the wiki should be updated
to reflect that.

Rob

--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121051231&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] GambasGears FPS

2014-02-20 Thread Rob Kudla
On 02/20/2014 11:11 AM, martin p cristia wrote:
> Is there a reason for GambasGears giving 60 FPS normally and 101 FPS 
> when running in a VirtualBox with Lubuntu?

Usually a result of 60 FPS indicates that OpenGL is locked to the vertical
refresh rate of your video card or monitor. The 101 FPS indicates it isn't
locked to vsync inside the VM, but is using software rendering while you're
probably using direct rendering outside the VM which apparently does vsync
by default now.

If you run the "real" glxgears from a terminal window, do you get "Running
synchronized to the vertical refresh" on standard error?

Rob


--
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


  1   2   >