Text from the Internet page

2013-03-27 Thread SaltySugar
How to get a piece of text from the Internet page with D code?

Re: Text from the Internet page

2013-03-27 Thread SaltySugar
On Wednesday, 27 March 2013 at 12:03:59 UTC, bearophile wrote: SaltySugar: How to get a piece of text from the Internet page with D code? By lines: http://rosettacode.org/wiki/Web_scraping#D Whole: http://rosettacode.org/wiki/Rosetta_Code/Rank_languages_by_popularity#D Bye, bearophile

Re: wxD - dead or alive?

2013-03-04 Thread SaltySugar
On Monday, 4 March 2013 at 13:25:22 UTC, Matthew Caron wrote: On 03/03/2013 08:16 AM, SaltySugar wrote: wxD - dead or alive? I've been using it. What makes you think that it's dead? Because It's latest release was at 2011-08-26

wxD - dead or alive?

2013-03-03 Thread SaltySugar
wxD - dead or alive?

Re: How to detect current executable file name?

2013-02-17 Thread SaltySugar
On Monday, 18 February 2013 at 03:28:59 UTC, eGust wrote: I need to locate the directory of current executable file, but I can't find how to do that in Phobos. I tried core.runtime.Runtime.args[0], but failed. Is there a standard method of Phobos to do that? I only know the way of Windows

Re: GtkD button size

2013-02-05 Thread SaltySugar
On Monday, 4 February 2013 at 21:55:24 UTC, Mike Wey wrote: On 02/04/2013 03:03 PM, SaltySugar wrote: On Sunday, 3 February 2013 at 16:07:06 UTC, Artur Skawina wrote: On 02/03/13 16:53, SaltySugar wrote: GTKD. Can someone explain me how to change button size in vbox, hbox? setSizeRequest (70

Re: GtkD button size

2013-02-05 Thread SaltySugar
On Tuesday, 5 February 2013 at 19:31:01 UTC, Mike Wey wrote: On 02/05/2013 06:33 PM, SaltySugar wrote: I can't find any tutorials about buttonboxes. Can you write how to use it? Here is a small example: import gtk.MainWindow; import gtk.Button; import gtk.Main; import gtk.HButtonBox; class

Re: GtkD button size

2013-02-04 Thread SaltySugar
On Sunday, 3 February 2013 at 16:07:06 UTC, Artur Skawina wrote: On 02/03/13 16:53, SaltySugar wrote: GTKD. Can someone explain me how to change button size in vbox, hbox? setSizeRequest (70, 50); doesn't work. Thanks. Try playing with an interactive gui tool, such as glade. The fill, expand

Re: get random char from array

2013-02-02 Thread SaltySugar
On Saturday, 2 February 2013 at 09:59:07 UTC, bearophile wrote: SaltySugar: My code: In Phobos there isn't something like random.choice() of Python. This code doesn't work with truly Unicode strings (better to use a dstring or dchar[] for that, unless you want to walk the string every

gtkD GUI design

2013-01-31 Thread SaltySugar
I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img/f4a238595048be7c23655b02477aabd8447.jpg My Code: import gtk.MainWindow; import gtk.Label; import gtk.Button; import gtk.VBox; import gtk.HBox;

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:41:52 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've got the following result: http://www.part.lt/img/f4a238595048be7c23655b02477aabd8447.jpg My Code: import gtk.MainWindow

Re: gtkD GUI design

2013-01-31 Thread SaltySugar
On Thursday, 31 January 2013 at 11:43:14 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:41:52 UTC, SaltySugar wrote: On Thursday, 31 January 2013 at 11:38:42 UTC, SaltySugar wrote: I want to do a GUI like this: http://www.part.lt/img/f44e209eb2ccbc9dda2e6b11fa5c6317747.jpg But I've

Re: gtkD problem

2013-01-29 Thread SaltySugar
On Tuesday, 29 January 2013 at 05:49:37 UTC, SaltySugar wrote: On Monday, 28 January 2013 at 21:50:24 UTC, Mike Wey wrote: On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote: There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash

gtk on the other machine

2013-01-29 Thread SaltySugar
I have to run my program on the other computer. How to compile my program to do that?

wxD problem

2013-01-28 Thread SaltySugar
Can someone help me? I compiled WxWidgets succesfully but when I try to compile wxD it shows me an error: dmc -D__DMD__ -mn -g -o+none -D -D__WXDEBUG__ -IC:\Program Files\WxWidgets\ include -IC:\Program Files\WxWidgets\lib\dmc_lib\mswd -w- -I. -WA -DNOPCH -HP90 -Ar -Ae-c

gtkD problem

2013-01-28 Thread SaltySugar
I have one problem. I compiled gtkD ad my first program successfully but when I try to run my program it shows: C:\appshello object.Exception@..\src\gtkc\Loader.d(123): Library load failed: libgtk-3-0.dll My Path variable: C:\Program Files\PC Connectivity

Re: gtkD problem

2013-01-28 Thread SaltySugar
On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote: Al 28/01/13 13:43, En/na SaltySugar ha escrit: I have one problem. I compiled gtkD ad my first program successfully but when I try to run my program it shows: C:\appshello object.Exception@..\src\gtkc\Loader.d(123): Library load

Re: gtkD problem

2013-01-28 Thread SaltySugar
On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote: On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote: Al 28/01/13 13:43, En/na SaltySugar ha escrit: I have one problem. I compiled gtkD ad my first program successfully but when I try to run my program it shows: C

Re: gtkD problem

2013-01-28 Thread SaltySugar
On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote: On 01/28/2013 03:08 PM, SaltySugar wrote: On Monday, 28 January 2013 at 13:20:31 UTC, SaltySugar wrote: On Monday, 28 January 2013 at 13:15:09 UTC, Jordi Sayol wrote: Al 28/01/13 13:43, En/na SaltySugar ha escrit: I have one problem

Re: gtkD problem

2013-01-28 Thread SaltySugar
On Monday, 28 January 2013 at 21:50:24 UTC, Mike Wey wrote: On Monday, 28 January 2013 at 19:20:00 UTC, Mike Wey wrote: There seems to be a small bug in the code so that it fails is the GTK_BASEPATH doesn't end with a backslash, you can either add it to the GTK_BASEPATH, or remove the