Re: [Lazarus] bittorrent

2015-03-06 Thread Xirax Xirax
Good,as I said in the topic I want to make a good thing for Me,You,Lazarus,FreePascal and every body use and will use torrent so I'm serious. But now I'm looking in Graeme said,Transmission.(Thank you Graeme,I did not saw it until you said) Take a look at it and say your opinion. And call me Xirax

Re: [Lazarus] bittorrent

2015-03-06 Thread Anthony Walter
Xarix: I'm interested. If your serious let me know. I've use deluge a lot in the past. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

[Lazarus] Arrow keys casue my control to lose focus

2015-03-06 Thread Anthony Walter
I am porting some controls for my Cross Codebot library, and one of them is a generic grid type control. The problem is on Ubuntu with Gtk pressing the arrows keys causes my grid to lose focus, even though I am handling WMGetDlgCode. Here is brief video of the problem:

Re: [Lazarus] bittorrent

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-06 12:30, Anthony Walter wrote: I think Lazarus might really make strides the programming community if a top notch bittorrent client were written using it. I've been using Transmission Remote GUI (written with Lazarus) for years. It works under Windows, Linux, FreeBSD and I believe

Re: [Lazarus] Play video from memory

2015-03-06 Thread Leonardo M. Ramé
To embed mplayer into a window you must know its ID. Window IDs have a relation with the WindowHandle, but that value must be somehow translated to be understood by X11 (or Windows). I don't know how to translate it :(. For example, If I use Format('%x', [Self.WindowHandle]) I get the Hex

[Lazarus] bittorrent

2015-03-06 Thread Anthony Walter
Does anyone know of a good bittorrent protocol implementation written in Pascal? I think Lazarus might really make strides the programming community if a top notch bittorrent client were written using it. Related: Popular windows torrent client μTorrent heads further down the toilet with each

Re: [Lazarus] bittorrent

2015-03-06 Thread silvioprog
On Fri, Mar 6, 2015 at 9:30 AM, Anthony Walter sys...@gmail.com wrote: Does anyone know of a good bittorrent protocol implementation written in Pascal? I think Lazarus might really make strides the programming community if a top notch bittorrent client were written using it. Related:

Re: [Lazarus] bittorrent

2015-03-06 Thread Xirax Xirax
Hi Anthony, I don't know implementation of bittorrent protocol in Pascal. But what are you think about this idea? http://forum.lazarus.freepascal.org/index.php/topic,27552.0.html On Fri, Mar 6, 2015 at 4:09 PM, silvioprog silviop...@gmail.com wrote: On Fri, Mar 6, 2015 at 9:30 AM, Anthony

Re: [Lazarus] bittorrent

2015-03-06 Thread Anthony Walter
Okay, if you decide to write a new cross platform bit torrent front end type application I'd be happy to help. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Re: [Lazarus] Play video from memory

2015-03-06 Thread aradeonas
Leonardo, Im not familiar with Mplayer but take a look at here: http://wiki.freepascal.org/TMPlayerControl And in MPlayerCtrl unit line 665 it just pass handle. Do you have opinion about how to pass memory stream? Regards, Ara On Fri, Mar 6, 2015, at 07:41 AM, Leonardo M. Ramé wrote: To

Re: [Lazarus] Play video from memory

2015-03-06 Thread Philippe Lévi
xwininfo ... linux ! ... I need a solution for windows ... I tried whndl := WindowFromDC(wglGetCurrentDC()) but MPLAYER does not seem to like it, either in decimal format or hex format ... and I do not know how to check if I get the resquested value ... the handle of the window launched

Re: [Lazarus] Play video from memory

2015-03-06 Thread aradeonas
Anyway if anyone know a way or library please tell me. Ara On Fri, Mar 6, 2015, at 08:12 AM, Philippe Lévi wrote: xwininfo ... linux ! ... I need a solution for windows ... I tried whndl := WindowFromDC(wglGetCurrentDC()) but MPLAYER does not seem to like it, either in

[Lazarus] proposed GUI Testrunner updates

2015-03-06 Thread Graeme Geldenhuys
Hi, I've recently been using the Lazarus GUI Testrunner for work purposes and was amazed at how outdated the interface is [based on FPTest, DUnit2 or DUnitX's GUI TestRunners]. Improvements are easy to do at this point, but I have quite a few things that I want to add. The question is, how

Re: [Lazarus] Conditional Breakpoints - are they supported yet?

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-06 11:58, Martin Frb wrote: Also I have not tested if it works with spaces, I tested only with no spaces at all Spaces don't seem to be a problem in the condition. I just tested with the following condition and it worked too. (ActualTag[0] = '') and (ActualTag[1] = 'h') and

Re: [Lazarus] Conditional Breakpoints - are they supported yet?

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-06 00:37, Martin Frb wrote: Fixed (I hope). You can now compare chars in the condition (chars, not strings) Hi Martin, thanks for trying, but it still doesn't work. Just got the latest Lazarus from trunk a few minutes ago. See attached screenshot. Compare the breakpoint condition

Re: [Lazarus] Conditional Breakpoints - are they supported yet?

2015-03-06 Thread Martin Frb
On 06/03/2015 11:52, Graeme Geldenhuys wrote: On 2015-03-06 00:37, Martin Frb wrote: Fixed (I hope). You can now compare chars in the condition (chars, not strings) Hi Martin, thanks for trying, but it still doesn't work. Just got the latest Lazarus from trunk a few minutes ago. See attached

Re: [Lazarus] Conditional Breakpoints - are they supported yet?

2015-03-06 Thread Graeme Geldenhuys
On 2015-03-06 11:52, Graeme Geldenhuys wrote: variable value. The breakpoint always breaks no matter the condition. Ah, found my problem - I'm getting mixed up between Lazarus IDE and MSEide syntax behaviours I think. I had to change my condition to use single quotes around the char values. Now

[Lazarus] ppa repository for Ubuntu derivatives

2015-03-06 Thread Juha Manninen
There has been talk earlier about putting up an update server for some Linux distros, providing latest versions of FPC and Lazarus. I updated the latest version of QupZilla browser into my Mint 17. I ran this : $ sudo add-apt-repository ppa:nowrep/qupzilla according to the instructions and now I

Re: [Lazarus] Play video from memory

2015-03-06 Thread aradeonas
Thank you HTH, I already look at that but my project is a free project and I cant buy this and I think there a way to open video from memory but its hard to find! Ara On Fri, Mar 6, 2015, at 10:58 AM, ListMember wrote: On 2015-03-06 19:32, aradeonas wrote: Dear Silvio I checked them before

Re: [Lazarus] Play video from memory

2015-03-06 Thread aradeonas
Dear Silvio I checked them before and I couldn't find out way for opening from memory. Ara On Fri, Mar 6, 2015, at 09:25 AM, silvioprog wrote: On Fri, Mar 6, 2015 at 2:02 PM, aradeonas aradeo...@operamail.com wrote: __ Anyway if anyone know a way or library please tell me. Ara You can

Re: [Lazarus] proposed GUI Testrunner updates

2015-03-06 Thread Juha Manninen
On Fri, Mar 6, 2015 at 6:14 PM, Graeme Geldenhuys mailingli...@geldenhuys.co.uk wrote: Improvements are easy to do at this point, but I have quite a few things that I want to add. The question is, how should I do this? Break the changes up into small patches and wait for each to be applied

Re: [Lazarus] Play video from memory

2015-03-06 Thread ListMember
On 2015-03-06 19:32, aradeonas wrote: Dear Silvio I checked them before and I couldn't find out way for opening from memory. Seeing that there isn't an option to feed a memorystream to a video player, it seems your best option to do that using a RAMDisk. You could use mapped file streams for

[Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread silvioprog
Hello, I'm planning to write three parsers, and googling, I found some entries talking about lexical parsers. After that, I did a 'find in files' in FPC sources, and I found many parsers (eg: jsonparser (jsonscanner), JSParser (JSScanner), fpsqlparser (fpsqlscanner), PParser (PScanner),

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread Kostas Michalopoulos
This is a classic series of articles that show how to write a very simple compiler in Turbo Pascal. The fundamentals when it comes to scanning are the same: http://compilers.iecc.com/crenshaw/ I've also written a BASIC implementation for Free Pascal and Lazarus. The scanner should be

Re: [Lazarus] Play video from memory

2015-03-06 Thread silvioprog
On Fri, Mar 6, 2015 at 2:02 PM, aradeonas aradeo...@operamail.com wrote: Anyway if anyone know a way or library please tell me. Ara You can get some video libraries here: http://wiki.freepascal.org/Video_Playback_Libraries -- Silvio Clécio My public projects - github.com/silvioprog --

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread aradeonas
Hi Silvio, About this parsing subject maybe looking at BeniBela Xidel and InternetTools help you or talking to Benito Aurthur of them. He is a very good developer and kind person like you. http://videlibri.sourceforge.net/xidel.html http://www.benibela.de/sources_en.html#internettools Ara On

Re: [Lazarus] How to write an eficient lexical scanner/parser?

2015-03-06 Thread Anthony Walter
Here is something I originally wrote in 2001. I had a product briefly for converting pascal code into documentation and it quite fast. Do with it as you will. http://pastebin.com/qXJdHwGM -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org