Re: [Gambas-user] someshort="xy" returns "Wanted short, got string instead"

2010-10-11 Thread Kevin Fishburne
ll not consist of arrays, but a few values that must be sent as raw data rather than numerical text strings. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 ---

Re: [Gambas-user] someshort="xy" returns "Wanted short, got string instead"

2010-10-13 Thread Kevin Fishburne
fferent datatype. The mention of Nabble and problems with the mailing list was an aside to explain why duplicate posts may have arisen from me reposting my message directly to the mailing list. Anyway, I think we're on the same page now, so I'm going to go compile gb3 and see what&#

[Gambas-user] gb3 - "Too many arguments" when binding UDP socket to port

2010-12-11 Thread Kevin Fishburne
ort) Endif Endif End I'm currently trying to convert my app from gb2 to gb3, so this is working in gb2. "udp.Bind(0)" returns the error, and though I haven't tested it yet I'm thinking that "udp.Bind(server_port)" will also return the same e

Re: [Gambas-user] How many is too many in GB3?

2010-12-17 Thread Kevin Fishburne
ject in gb3 for the first time. That one bit me in the ass before someone in the mailing list pointed it out. I thought gb3 was just super unstable because it wouldn't run my app, but was happy to discover I was wrong. -- Kevin Fishburne Eight Virtues www: http://sales.eightv

Re: [Gambas-user] Linuxmint and gambas

2010-12-29 Thread Kevin Fishburne
ripts second. You may re-execute the install scripts any time you want to refresh your install to the latest revision. And as always, read the scripts before executing. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 # GAM

Re: [Gambas-user] Some new features in Gambas 3

2011-01-01 Thread Kevin Fishburne
help should someone want to use the functions. It seems to me a little strange to have ASC and STR$ but not equivalents for other datatypes. Some day some other programmer will see these functions and be extremely happy, probably f

Re: [Gambas-user] MkXXX$() functions

2011-01-15 Thread Kevin Fishburne
umentation pointing to the new functions? ASC() and STR() could also be used to forge UDP packets and still suffer from the endianness issue. -- Kevin Fishburne Eight Virtues www: [2]http://sales.eightvirtues.com e-mail: [3]sa...@eightvirtues.com phone: (770) 853-6271 References

Re: [Gambas-user] MkXXX$() functions

2011-01-15 Thread Kevin Fishburne
sing you'll be keeping out of respect for or compatibility with >> old-school BASIC. Maybe ASC() and STR() could be removed, with the >> documentation pointing to the new functions? ASC() and STR() could also >> be used to forge UDP packets a

Re: [Gambas-user] MkXXX$() functions

2011-01-16 Thread Kevin Fishburne
article posted yesterday. Ken at Ultima Aiera said he got a record for hits to his site because of it...nice. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271

Re: [Gambas-user] MkXXX$() functions

2011-01-16 Thread Kevin Fishburne
= Read #MyUdpSocket As Message0 > ... > > End > > ... > >> And yes, I had my first Slashdot article posted yesterday. Ken at Ultima >> Aiera said he got a record for hits to his site because of it...nice. > Cool. :-) >

[Gambas-user] gb3: incorrect result from equation using singles

2011-01-25 Thread Kevin Fishburne
I lost my mind, or is something seriously wrong here? Also, Benoît, have the MkXXX$() functions been taken out of gb3 yet? I want to compile the latest revision but haven't converted my networking code to use structures yet. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.

Re: [Gambas-user] gb3: incorrect result from equation using singles

2011-01-30 Thread Kevin Fishburne
tures yet. > They will be removed sooner or later. You don't have to compile the latest > revision. You can compile any revision you want by passing the "-r " to > the subversion command, where "" is the revision number. Cool, t

Re: [Gambas-user] gb3: Draw method with same source and destination image

2011-02-02 Thread Kevin Fishburne
On 02/02/2011 02:11 PM, Kevin Fishburne wrote: > I have an image, blandscape, that is 1408 x 1408 pixels. This code works: > > blandscape.Draw(blandscape, 0, -128) > > This code produces odd results (attached): > > blandscape.Draw(blandscape, 0, 128) > > I'm try

Re: [Gambas-user] gb3: Draw method with same source and destination image

2011-02-02 Thread Kevin Fishburne
ction, so soon I'll be able to show you what I'm doing. Until then, just struggling with frame rates. ;) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 --

Re: [Gambas-user] Circular references

2011-02-04 Thread Kevin Fishburne
On 02/04/2011 08:56 AM, Jussi Lahtinen wrote: > I cannot open your project, tar ball seems to be corrupted. The attachment extracted for me under Ubuntu 10.10. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6

Re: [Gambas-user] gb3: Draw method with same source and destination image

2011-02-04 Thread Kevin Fishburne
must have the same format." Just crazy... Sadly when I check their properties they are the same format, Standard (not Multiplicative). I'm currently trying to understand why it's saying that, as I want my 8.5x fram

[Gambas-user] gb3: bug using Draw and DrawAlpha with imlib component

2011-02-05 Thread Kevin Fishburne
operty window for image1, then step-execute the last line the DrawAlpha statement actually works...no error message at all. It's almost like just bringing up the property window modifies image1 such that DrawAlpha under imlib is made happy and doesn't throw the error. -- Kevi

Re: [Gambas-user] Issue 33 in gambas: Wait does not allow Form_Close event to trigger in Qt

2011-02-12 Thread Kevin Fishburne
open windows and terminate all child processes." I'll give it a try, thanks. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- The

Re: [Gambas-user] Missing libraries for some examples

2011-03-02 Thread Kevin Fishburne
f Ubuntu or try installing the proprietary drivers using jockey-gtk or the Kubuntu equivalent. Most ATI and NVIDIA cards should be supported and allow OpenGL. -- Kevin Fishburne Eight Virtues www: [3]http://sales.eightvirtues.com e-mail: [4]sa...@eightvirtues.com phone: (770) 853-6271 References

[Gambas-user] gb3+sdl: Screen object not created and screen events don't trigger

2011-03-05 Thread Kevin Fishburne
ation "Public Screen As New Window As "Screen"" is a joke or something. :/ Obviously I'm doing something wrong but an hour of experimentation so far has yielded no results. I'm using gb3 revision 3608. As I mentioned BeastScroll works, so I think it's probabl

Re: [Gambas-user] gb3+sdl: Screen object not created and screen events don't trigger

2011-03-05 Thread Kevin Fishburne
On 03/05/2011 10:36 PM, Kevin Fishburne wrote: > I have a module, Render, with the following: > > ... > > The procedure Screen_Draw should be triggered as an event automatically, > yet it is not. When manually calling it I get a "No device" error when > it t

[Gambas-user] gb3 (rev. 3641) and SDL surfaces

2011-03-09 Thread Kevin Fishburne
uch of it currently uses the .Draw and .DrawAlpha methods which bring the framerate to 21 fps at 1280x720. The framerate is only going to get worse from here, as I'm just getting started. -- Kevin Fishburne Eight Virtues www: http://sales.

[Gambas-user] translating planar coordinates relative to point's angle

2011-03-13 Thread Kevin Fishburne
ity (+/-). What's a good algorithm to figure out the new values of x and y when adjusted by xvel and yvel relative to a? I've looked through a bunch of vector math "tutorials" but they are very broad and difficult for me to understand. I'm good at many things, but t

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Kevin Fishburne
On 03/14/2011 02:13 AM, Kevin Fishburne wrote: > I'm trying to move a point with an angle/direction/vector relative to > its angle. Let's say I have these variables: > > Dim a as Single ' Point's angle in degrees. > Dim x as Single ' Point's x coordin

Re: [Gambas-user] gb3 (rev. 3641) and SDL surfaces

2011-03-14 Thread Kevin Fishburne
rawing is super slow. I have no issue with DrawAlpha being maintained in software only, but basic image blitting should definitely be supported by the SDL (and by proxy OpenGL) component. I wonder if this has something to do with how the images a

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-14 Thread Kevin Fishburne
's very similar to the controls used in most first person shooters. Pushing the right stick modifies an orientation variable, so you can turn faster or slower depending on how far you push the stick. How far you push the left stick determines the speed with which you move. Combining the two s

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-15 Thread Kevin Fishburne
es from an analog stick. Maybe I need to calculate twice, once for Interface.stick_leftx (offset by 90 degrees) and once for Interface.stick_lefty (not offset)? Wonder if that will produce the dreaded straferunning... -- Kevin Fishburne Eight Virtues www: [4]htt

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-16 Thread Kevin Fishburne
On 03/15/2011 05:03 PM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> Just to be clear on what -should- be happening, here's an example. >> Player is facing up (0 degrees): left stick pushed up moves up, pushed >> down >> moves down, push

Re: [Gambas-user] gb3 (rev. 3641) and SDL surfaces

2011-03-16 Thread Kevin Fishburne
ght not be too excited to learn the complexities of OpenGL, but gb's drawing logic is pretty easy once you know it. In my case it would push the frame rate from 3-4 FPS to well over 20 (at least), which would be amazing. -- Kevin Fishburne Eight Virtues www: http://sa

Re: [Gambas-user] Removal of gb.db.firebird

2011-03-18 Thread Kevin Fishburne
compatibility to the maintainers? I have no personal stake in this; I didn't know what it was until a couple of minutes ago, but it seems a shame if their variation on the license makes it incompatible. Their license may affect them adversely in the future if they don't change it. --

Re: [Gambas-user] Removal of gb.db.firebird

2011-03-18 Thread Kevin Fishburne
if the > problem is fixed. I just sent their foundation or whatever the following through their web site: - removal of Firebird component from GAMBAS 3 - From Kevin Fishburne, email kev

Re: [Gambas-user] Removal of gb.db.firebird

2011-03-18 Thread Kevin Fishburne
On 03/18/2011 10:43 PM, Kevin Fishburne wrote: On 03/18/2011 10:30 PM, Benoît Minisini wrote: On 03/18/2011 10:15 PM, Benoît Minisini wrote: Hi, I'm sorry that I had to remove the gb.db.firebird component in Gambas 3, because the license of some its source files is not actually compa

Re: [Gambas-user] Removal of gb.db.firebird

2011-03-18 Thread Kevin Fishburne
ve open source farther away from its original intent. There's a real danger in people bastardizing open source licenses while still benefiting from the term "open". (Google comes to mind...) Glad to see GAMBAS has the strength of its convictions. :) -- Kevin Fishburne Eight Virtues

Re: [Gambas-user] translating planar coordinates relative to point's angle

2011-03-21 Thread Kevin Fishburne
someone can help me there too. Fortunately for me most of the "crazy" stuff in my app is complete and I can move on to other things. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 --

[Gambas-user] the math behind full screen rotation

2011-03-21 Thread Kevin Fishburne
well. Reading my own email it sounds simple, but I've tried so many things that I can't believe I haven't solved the problem through sheer luck. -- Kevin Fishburne Eight Virtues www:http://sales.eightvirtues.com e-mail:sa...@eightvirtues.com phone: (770) 853-6271 -

Re: [Gambas-user] the math behind full screen rotation

2011-03-23 Thread Kevin Fishburne
way to compensate for not cropping the image twice, or even once. As long as the entire image is preserved by the rotation function (it is) and it behaves in a predictable manner (it does), the camera's coordinates should be able to be translated and rotated so that they are in t

Re: [Gambas-user] the math behind full screen rotation

2011-03-25 Thread Kevin Fishburne
On 03/24/2011 12:05 AM, John Spikowski wrote: > On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: > >> That will probably work, but there should be a mathematical way to >> compensate for not cropping the image twice, or even once. As long as >> the entire i

Re: [Gambas-user] the math behind full screen rotation

2011-03-27 Thread Kevin Fishburne
On 03/26/2011 03:49 AM, Doriano Blengino wrote: Il 26/03/2011 04:08, Kevin Fishburne ha scritto: On 03/24/2011 12:05 AM, John Spikowski wrote: On Wed, 2011-03-23 at 23:03 -0400, Kevin Fishburne wrote: That will probably work, but there should be a mathematical way to compensate for not

Re: [Gambas-user] the math behind full screen rotation

2011-03-28 Thread Kevin Fishburne
On 03/27/2011 03:22 PM, Kevin Fishburne wrote: > On 03/26/2011 03:49 AM, Doriano Blengino wrote: >> Il 26/03/2011 04:08, Kevin Fishburne ha scritto: >>> On 03/24/2011 12:05 AM, John Spikowski wrote: >>> >>>> On Wed, 2011-03-23 at 23:03 -0400, Kevin Fis

[Gambas-user] how to flush a process stream

2011-03-28 Thread Kevin Fishburne
which are generated far faster than the frame rate of the application. How can I clear the events queued by the Gamepad stream? Also, how can I continuously read events from the stream until it is empty? I might want to clear it like that so I can ignore some events and process others. Thanks

Re: [Gambas-user] how to flush a process stream

2011-03-29 Thread Kevin Fishburne
On 03/29/2011 06:13 PM, Laurent Carlier wrote: > Le mardi 29 mars 2011 04:33:21, Kevin Fishburne a écrit : >> I'm reading input from a gamepad by using code such as: >> >> pad_device = Exec ["cat", "/dev/input/js0"] For Read As "Gamepad" >

Re: [Gambas-user] the math behind full screen rotation

2011-03-30 Thread Kevin Fishburne
On 03/30/2011 02:53 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> >> In a half-drunken stupor I managed to correct the issue by trial and >> error. Hell of a miracle. Here's the abbreviated working code: >> > I think it is more dangerous to

Re: [Gambas-user] How can I print my Gambas program code?

2011-03-30 Thread Kevin Fishburne
t exist, maybe. If implemented it could just be a "render text to image" tool that someone could print as an entirely separate operation. Personally, I think printing code is a bad idea in modern times. Also GAMBAS is under deeper development than brand new features warrant time for. It&

Re: [Gambas-user] How can I print my Gambas program code?

2011-03-31 Thread Kevin Fishburne
er. A pattern I've noticed whenever I'm trying to do the impossible is that if I just keep trying, no matter how futile it seems, eventually I get it right. Implementing the diamond square algorithm last year was also hugely difficult for me, but months of frustration finally lead to s

Re: [Gambas-user] how to flush a process stream

2011-03-31 Thread Kevin Fishburne
2010 - 2011 | | | |R.I.P. | | | |___(@)(@)| /`(@)(@)(@)```\ ` `(@)(@) ` ` ` ` \__/ ` ` ` ` ` ` ` ` ` ` ` ` ` -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (77

[Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-03-31 Thread Kevin Fishburne
Right now I'm thinking I need to have transaction queue arrays of [256,256] structures (65536 structures) to accommodate this. Not so good when any particular structure could be up to 198 KB + header. Any ideas are appreciated, as this is starting to make me postal! :) -- Kevin Fishburne Eight Virtu

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-03-31 Thread Kevin Fishburne
and you can't just have a generic structure assigned data from another structure. Not good for me. I think I'm straight up screwed, but will give it a few more days to see if I can come up with a suitable hack. -- Kevin

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-03-31 Thread Kevin Fishburne
On 04/01/2011 01:15 AM, Bruce Bruen wrote: > On Friday, April 01, 2011 01:17:50 PM Kevin Fishburne wrote: >> I'm finding that the task of replacing the Mk$ functions with structures >> for UDP packet client/server transactions is a massive undertaking. So >> far it&#x

Re: [Gambas-user] About syntax highlighting and copy/paste to OpenOffice

2011-03-31 Thread Kevin Fishburne
, encoding the current theme and code markers. While this is plainly an extravagant feature that would just be for fun, it would be cool for code examples in web sites. It should perhaps be placed on low priority, like when all other bugs are fixed. Use the existing "theme"

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-01 Thread Kevin Fishburne
long the eight cardinal directions. Mutable landscape, structures (as in buildings), etc. will make a fun game. It is like Nethack, though some things will be built-in like the ability for two or more players to sign a written, publicly posted document, and agree to enforce it. -- Kevin Fishbu

Re: [Gambas-user] Just some questions to Kevin Fishburne

2011-04-02 Thread Kevin Fishburne
ures but still have 128x128 pixel tiles. As far as the rendering engine is concerned, DrawAlpha is everything. Right now the only things hurting the frame rate are the rotate method and the image-to-image Draw method (image1.Draw[image2,...]). Those things can wait, as I'm looking at finis

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-02 Thread Kevin Fishburne
ax? With respect to Bruce, I figured out how to convert Shorts and Integers to/from strings, but not Singles. If I can figure out how to convert Singles to/from a string then my problems are all solved. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvi

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
otherwise specified. For now I may actually use file I/O to convert the values back and forth, though I'll be looking at memcpy too. > Kevin, another Gambas 3 RC1 release killer. ;-) Haha, sorry. -- Kevin Fishburne Eight Virtues www: http://sales.

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
y2.Count * SizeOf(gb.Integer)) Awesome, thank you. That's a damn powerful ability that I didn't know about. Time to see what else useful is out there in C-land. :) -- Kevin Fishburne Eight Virtues www: http://

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-03 Thread Kevin Fishburne
, id As Byte Read #udp, type As Byte Read #udp, data, Lof(udp) - 2 End If this works (and I don't see why it wouldn't), then everything is fixed. I can have a transaction array that can store any transaction type by saving the "payload" as a string and decoding it la

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-04 Thread Kevin Fishburne
up to 2000 clients. That's why the payload has to stay a string until it is processed; otherwise it would have no way of being stored in an array. > And beware that the READ syntax has changed in Gambas 3. Look at the > documentation! I've been using gb3 for a while now and l

Re: [Gambas-user] New Gambas website design

2011-04-04 Thread Kevin Fishburne
Snap!" error. What's worse is that Chrome remembers that zoom setting so it happens every time I go to the GAMBAS web site now and I can't undo it. Firefox does not have this problem. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtu

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-04 Thread Kevin Fishburne
On 04/04/2011 02:44 PM, Kevin Fishburne wrote: > On 04/04/2011 04:20 AM, Benoît Minisini wrote: >> >> You should better decode the packet directly with READ instructions. > > I would except the incoming transactions aren't processed immediately. > They are stored in se

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-04 Thread Kevin Fishburne
On 04/05/2011 01:39 AM, Kevin Fishburne wrote: Alright, I've transformed all the networking code to the suggested solution, and it's so close to working I can smell it. While there is more code now, I like it better as it's easier to read (important!). Some code: Dim id

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-05 Thread Kevin Fishburne
u must use the second syntax of WRITE: > > WRITE #Stream, String, Length > http://www.youtube.com/watch?v=cJPa8dGBxfM I'll get back to you in the morning if it's still not working. Damn... -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-05 Thread Kevin Fishburne
On 04/05/2011 03:54 AM, Kevin Fishburne wrote: > http://www.youtube.com/watch?v=cJPa8dGBxfM > > I'll get back to you in the morning if it's still not working. Damn.. Works. Thank you. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirt

Re: [Gambas-user] New Gambas website design

2011-04-06 Thread Kevin Fishburne
ng like http://gambas.sourceforge.net/crap, changing the zoom level to something else, then going back to http://gambas.sourceforge.net <http://gambas.sourceforge.net/>. This may simply be a Chrome or SourceForge issue, but I've never seen it happen with a different site. -- Kev

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-06 Thread Kevin Fishburne
On 04/05/2011 03:34 AM, Benoît Minisini wrote: >> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: >>> Alright, I've transformed all the networking code to the suggested >>> solution, and it's so close to working I can smell it. While there is >>> more c

Re: [Gambas-user] Source code - where's the download link gone

2011-04-06 Thread Kevin Fishburne
pixbuf2.0-dev # Remove previously-created files. sudo rm -fr trunk # Download latest GAMBAS 3 revision. svn checkout https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ # Compile, install and run. cd trunk ./reconf-all ./configure make sudo make install gambas3 -- Kevin Fishburne

Re: [Gambas-user] Source code - where's the download link gone

2011-04-07 Thread Kevin Fishburne
On 04/07/2011 03:42 AM, richard terry wrote: > On Thursday 07 April 2011 15:05:14 Kevin Fishburne wrote: >> https://gambas.svn.sourceforge.net/svnroot/gambas/gambas/trunk/ > Thanks, that's what i"m missing, the rest I do every few days, by svn update, > but I'

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-07 Thread Kevin Fishburne
On 04/07/2011 05:05 AM, Benoît Minisini wrote: >> On 04/05/2011 03:34 AM, Benoît Minisini wrote: >>>> On 04/05/2011 01:39 AM, Kevin Fishburne wrote: >>>>> Alright, I've transformed all the networking code to the suggested >>>>> solution, and it

Re: [Gambas-user] Source code - where's the download link gone

2011-04-07 Thread Kevin Fishburne
;t know what gb components use it, but it's described as: GDK Pixbuf library (development files) The Gdk Pixbuf library provides: - Image loading and saving facilities. - Fast scaling and compositing of pixbufs. - Simple animation loading (ie. animated GIFs) Could be used by gb

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-07 Thread Kevin Fishburne
#udp, id As Byte Write #udp, 70 As Byte Write #udp, worldx As Single Write #udp, worldy As Single udp.Send ' Receive the transaction. id = Read #udp As Byte type = Read #udp As Byte If Eof(udp) = False Then data = Read #udp, Lof(udp) ' Process the tra

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-08 Thread Kevin Fishburne
On 04/08/2011 02:32 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> >> Ahh, I understand a little better. I don't know much about endianness, >> so please excuse my ignorance here. When reading socket data into a >> string how is the data affect

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-09 Thread Kevin Fishburne
On 04/08/2011 04:49 PM, Benoît Minisini wrote: >> Kevin Fishburne wrote: >> >> Ahh, I understand a little better. I don't know much about endianness, >> so please excuse my ignorance here. >> >> ... >> >> While it would be slow, I could j

Re: [Gambas-user] gb3 RC1: using structures to replace the loss of Mk$ functions

2011-04-09 Thread Kevin Fishburne
> could help you... Agreed. Unless a variant somehow alleviates the endianness problem then it's no better than a string. > The trick with string + memory stream should work for you In the file cabinet. :) -- Kevin Fishburne Eight Virtues www: http://

Re: [Gambas-user] image rotate

2011-04-09 Thread Kevin Fishburne
that doesn't work then the logic behind rotating a PictureBox is flawed (yours or gb's). I use something like: rotatedimage = nonrotatedimage.Rotate(Rad(angle_in_degrees)) You're trying to deal with a PictureBox directly, but that's outside my expertise. -- Kevin Fishburn

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

2011-04-11 Thread Kevin Fishburne
to get a second static IP or set up a subdomain. This wouldn't exactly be a professionally hosted solution at some hardened datacenter, but I thought I should put it on the table for consideration. Let me know, as I can put together a VM and proper port forwarding as soon as tonight if Be

Re: [Gambas-user] an "Is this possible question" about images

2011-04-14 Thread Kevin Fishburne
ithm. I found some info here if you do need the fisheye effect: http://en.wikipedia.org/wiki/Fisheye_lens The formulas are near the bottom, but I don't know if they're really helpful. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-m

Re: [Gambas-user] an "Is this possible question" about images

2011-04-14 Thread Kevin Fishburne
nd = Color.White Draw.Text("Look, it's text on an image with a crappy shadow!!!", X + 1, Y - 1) I don't have any project examples that are simple enough to demonstrate this, but if you're really having trouble I could put something together. -- Kevin Fishburne Eight

[Gambas-user] using a "file system database"

2011-04-15 Thread Kevin Fishburne
hts into the ext3/4 filesystem, possible alternate file systems, and databases to know what the best solution would be for this type of problem? Any insights into the most efficient way to create hierarchies of directories and files would be appreciated as well. -- Kevin Fishburne Eight Virtues w

Re: [Gambas-user] using a "file system database"

2011-04-17 Thread Kevin Fishburne
On 04/15/2011 03:50 AM, Rolf-Werner Eilert wrote: > Am 15.04.2011 09:22, schrieb Kevin Fishburne: >> I'm in the early phases of creating a "database" that uses the file >> system for data organization rather than a traditional software database >> such as MySQL

Re: [Gambas-user] using a "file system database"

2011-04-17 Thread Kevin Fishburne
On 04/15/2011 03:56 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> I'm in the early phases of creating a "database" that uses the file >> system for data organization rather than a traditional software database >> such as MySQL, etc. I'm

Re: [Gambas-user] using a "file system database"

2011-04-17 Thread Kevin Fishburne
ver time as the files slowly increase with dead data. I'll at least allow overwriting dead fields with new ones to keep things sane. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 --

Re: [Gambas-user] using a "file system database"

2011-04-18 Thread Kevin Fishburne
On 04/18/2011 04:32 AM, Doriano Blengino wrote: > Kevin Fishburne ha scritto: >> On 04/15/2011 03:56 AM, Doriano Blengino wrote: >> >>> Kevin Fishburne ha scritto: >>> >>>> I'm in the early phases of creating a "database" that u

Re: [Gambas-user] Gambas 3 working on Ubuntu Natty with Unity interface

2011-04-23 Thread Kevin Fishburne
#x27;re stuck between a rock and a hard place. Unity and GNOME 3 are utterly horrible. So horrible, in fact, that I think the combination is going to spell very bad things for Linux users everywhere. Unless they allow both to be as configurable as GNOME 2 (or someone forks GNOME 3), I think we&

Re: [Gambas-user] How to disable the minimize button on window

2011-04-25 Thread Kevin Fishburne
your form will only show the close button and not the minimize and maximize buttons. You can also change it to False in code in the Form_Open procedure by adding "Me.Utility = False" to the procedure. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirt

Re: [Gambas-user] Issue 62 in gambas: No way to rename project

2011-04-29 Thread Kevin Fishburne
registered voting and reason. Nothing would ever have to be taken seriously, but it could be an idea board for what people who are using it need. Avoiding bloat as always would remain the same. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@

[Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
tions. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:05 PM, Benoît Minisini wrote: > > I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. > > Now let's try to fix gb.image... Compiling now on a quad-core 3.5 GHz CPU overclocked to 4.1 GHz. Muwahaha! Will report results shortly. --

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:19 PM, Kevin Fishburne wrote: > On 04/30/2011 09:05 PM, Benoît Minisini wrote: >> >> I fixed Image.PaintImage() in gb.image.imlib, so your code should work again. >> >> Now let's try to fix gb.image... > > Compiling now on a quad-c

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
On 04/30/2011 09:55 PM, Benoît Minisini wrote: >> On 04/30/2011 09:19 PM, Kevin Fishburne wrote: >> >> Something like: >> >> If TargetWidth = SourceWidth And TargetHeight = SourceHeight Then >> Do_Not_Use_Scaling_Blit_Algorithm >> Else >> Us

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
ouragement to implement OpenGL functions. Seems strange though that SDL can't rotate a 2D bitmap efficiently in hardware. Even the SNES could do that. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 --

Re: [Gambas-user] gb3: recent changes to PaintImage and DrawImage

2011-04-30 Thread Kevin Fishburne
the hell up and try to learn to implement OpenGL and SDL in GAMBAS. I'm starting to think that. ;) And yes, Laurent probably has more solid info that you or I. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -

[Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
Is it possible to sort an array (and/or something structurally similar to an array) by the values of a single dimension? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
On 05/05/2011 01:19 AM, nando wrote: > Technically, anything is possible > Give an example of your data to sort perhaps? If I have an array of two dimensions [1000, 10] how would I sort it by the second element of the second dimension for example? -- Kevin Fishburne Eight Virtues www

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-04 Thread Kevin Fishburne
or do I need to sort manually? -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -- WhatsUp Gold - Download Free Network Management Softw

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-05 Thread Kevin Fishburne
GAMBAS can do: http://www.youtube.com/watch?v=npW2CMtJ6ow That's my project in gb3 under Ubuntu 10.10. :) -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.com e-mail: sa...@eightvirtues.com phone: (770) 853-6271 -

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-09 Thread Kevin Fishburne
On 05/05/2011 07:50 AM, Fabien Bodard wrote: > 2011/5/5 Kevin Fishburne: >> On 05/05/2011 06:31 AM, Fabien Bodard wrote: >>> We use that to sort icons in the iconview component >>> >>> take a look in the source >>> >>> trunk/comp/gb.form >&

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-23 Thread Kevin Fishburne
lease post the simplest example possible? A link to the documentation on the _sort special method might be enough (I couldn't find it). As a refresher I'm basically trying to sort an array by one of its elements, much like sorting a spreadsheet. --

Re: [Gambas-user] gb3: sorting an array-like structure

2011-05-23 Thread Kevin Fishburne
On 05/23/2011 10:01 PM, Kevin Fishburne wrote: > On 05/09/2011 09:59 PM, Benoît Minisini wrote: >>> Think of it like a spreadsheet instead of an array. I need each "row" >>> sorted by the value in a "column". The two column values are >>> ObjectN

[Gambas-user] more trigonometry fun (not)

2011-05-23 Thread Kevin Fishburne
es to follow logical paths. Currently they're bound to local coordinates and ignore player orientation. Digging, shooting arrows, throwing objects, etc. can't work without it. -- Kevin Fishburne Eight Virtues www: http://sales.eightvirtues.c

Re: [Gambas-user] more trigonometry fun (not)

2011-05-23 Thread Kevin Fishburne
On 05/24/2011 12:16 AM, Bruce Bruen wrote: > On 24/05/11 13:14, Kevin Fishburne wrote: >> I was already helped graciously in figuring out how to translate a point >> in a plane along its local axes at a given orientation, but now need a >> bit of the inverse of the equation.

Re: [Gambas-user] more trigonometry fun (not)

2011-05-23 Thread Kevin Fishburne
On 05/24/2011 12:34 AM, wally wrote: > On Tuesday, May 24, 2011 05:44:14 Kevin Fishburne wrote: >> I was already helped graciously in figuring out how to translate a point >> in a plane along its local axes at a given orientation, but now need a >> bit of the inverse of the e

Re: [Gambas-user] more trigonometry fun (not)

2011-05-23 Thread Kevin Fishburne
On 05/24/2011 12:57 AM, Bruce Bruen wrote: > On 24/05/11 14:08, Kevin Fishburne wrote: >> On 05/24/2011 12:16 AM, Bruce Bruen wrote: >> >>> On 24/05/11 13:14, Kevin Fishburne wrote: >>> >>>> I was already helped graciously in figuring out how to tran

  1   2   3   4   5   >