Re: weekly news?

2020-01-23 Thread Russel Winder via Digitalmars-d-learn
On Thu, 2020-01-23 at 23:47 -0500, James Blachly via Digitalmars-d- learn wrote: > On 1/23/20 8:13 PM, Mike Parker wrote: > > On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote: > > > > > Or delete all that wordpress junk and make something in D :P > > > > I intend to delete all

Re: weekly news?

2020-01-23 Thread James Blachly via Digitalmars-d-learn
On 1/23/20 8:13 PM, Mike Parker wrote: On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote: Or delete all that wordpress junk and make something in D :P I intend to delete all that Wordpress junk and go completely static eventually. Mike, I know we're not a golang shop, but

Re: weekly news?

2020-01-23 Thread James Blachly via Digitalmars-d-learn
On 1/22/20 7:58 PM, Adam D. Ruppe wrote: On Thursday, 23 January 2020 at 00:52:10 UTC, Mike Parker wrote: Got any examples? No one has reported this to me before and I haven’t encountered a 404 in a while. Almost all of them! Hit F12 to open browser tools and notice the network tab:

Re: weekly news?

2020-01-23 Thread Mike Parker via Digitalmars-d-learn
On Thursday, 23 January 2020 at 15:44:10 UTC, Adam D. Ruppe wrote: Or delete all that wordpress junk and make something in D :P I intend to delete all that Wordpress junk and go completely static eventually.

Re: Defining an alias to an overloaded function

2020-01-23 Thread olvy via Digitalmars-d-learn
On Tuesday, 21 January 2020 at 04:44:43 UTC, Boris Carvajal wrote: This seems to work: ... struct RangeImpl(T) { alias byKeyRetType = typeof(byKey!(int[T])((int[T]).init)); byKeyRetType keyRange; this(ref int[T] d) { keyRange = d.byKey; }

Re: weekly news?

2020-01-23 Thread H. S. Teoh via Digitalmars-d-learn
On Thu, Jan 23, 2020 at 03:44:10PM +, Adam D. Ruppe via Digitalmars-d-learn wrote: [...] > Or delete all that wordpress junk and make something in D :P +1. ;-) T -- The fact that anyone still uses AOL shows that even the presence of options doesn't stop some people from picking the

Re: list of all defined items in a D file

2020-01-23 Thread Anonymouse via Digitalmars-d-learn
On Thursday, 23 January 2020 at 17:10:29 UTC, berni44 wrote: I'd like to get a list of all items (public, package, private) that are defined in a D file. Is there a simple way, to get them? __traits(allMembers, mixin(__MODULE__))? Replace with a full module name if not the current one.

list of all defined items in a D file

2020-01-23 Thread berni44 via Digitalmars-d-learn
I'd like to get a list of all items (public, package, private) that are defined in a D file. Is there a simple way, to get them?

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Russel Winder via Digitalmars-d-learn
On Thu, 2020-01-23 at 15:12 +, Ron Tarrant via Digitalmars-d-learn wrote: > On Thursday, 23 January 2020 at 12:43:24 UTC, Antonio Corbi wrote: > > > Yes, it uses 'sed' to get 'constants.d' from 'constants.d.in' > > at configuration time. > > So you can write your own 'constants.d' with the

Re: weekly news?

2020-01-23 Thread Adam D. Ruppe via Digitalmars-d-learn
On Thursday, 23 January 2020 at 06:23:14 UTC, Mike Parker wrote: I'm not getting any 404s in the network tab in Chrome's dev tools. I see it on all browsers, chrome, firefox, even curl -v. Don't know why... I'd suggest making sure the index.php file looks normal (I've seen wordpress malware

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 12:43:24 UTC, Antonio Corbi wrote: Yes, it uses 'sed' to get 'constants.d' from 'constants.d.in' at configuration time. So you can write your own 'constants.d' with the appropiate values for UIDIR and DATADIR and delete/comment the the preBuildCommands in

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 14:10:37 UTC, Ferhat Kurtulmuş wrote: Actually I have just tried this with gtkd and working: button1.bindProperty("sensitive", entry1, "sensitive", GBindingFlags.DEFAULT); That's pretty cool, Ferhat. I'll add this to the todo list.

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Thursday, 23 January 2020 at 13:41:34 UTC, Ferhat Kurtulmuş wrote: On Thursday, 23 January 2020 at 12:32:57 UTC, Ron Tarrant wrote: [...] Yes, but what if you set sensitive properties of a bunch of the widgets in the same time. Each time you have to write and call setSensitive() for each

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Thursday, 23 January 2020 at 12:32:57 UTC, Ron Tarrant wrote: On Thursday, 23 January 2020 at 09:27:45 UTC, Ferhat Kurtulmuş wrote: I want this button disabled so that user cannot spawn another thread while the first one is on duty. This is actually the subject of an up-coming post which

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Antonio Corbi via Digitalmars-d-learn
On Thursday, 23 January 2020 at 12:29:11 UTC, Ron Tarrant wrote: On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote: https://gitlab.com/amcorbi/dmaurerrose I think this is somewhat related to what te OP was asking for. I'm confused. I was the OP, so I'm not sure who you're

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 09:27:45 UTC, Ferhat Kurtulmuş wrote: I want this button disabled so that user cannot spawn another thread while the first one is on duty. This is actually the subject of an up-coming post which is scheduled to go live on Feb. 25, 2020. It uses setSensitive()

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote: https://gitlab.com/amcorbi/dmaurerrose I think this is somewhat related to what te OP was asking for. I'm confused. I was the OP, so I'm not sure who you're referring to. Assuming you are on GNU/Linux, a simple 'dub run'

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ron Tarrant via Digitalmars-d-learn
On Thursday, 23 January 2020 at 08:33:39 UTC, Antonio Corbi wrote: https://gitlab.com/amcorbi/dmaurerrose I think this is somewhat related to what te OP was asking for. I'm confused. I was the OP, so I'm not sure who you're referring to. Assuming you are on GNU/Linux, a simple 'dub run'

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Ferhat Kurtulmuş via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 21:26:40 UTC, Ron Tarrant wrote: On Wednesday, 22 January 2020 at 09:18:51 UTC, Ferhat Kurtulmuş wrote: Another useful tutorial would be something using bindProperty and/or bindPropertyWithClosures. Once I used bindProperty with vala, but I think there is no

Re: Blog Post #0099: A Special Request

2020-01-23 Thread Antonio Corbi via Digitalmars-d-learn
On Wednesday, 22 January 2020 at 21:22:57 UTC, Ron Tarrant wrote: On Tuesday, 21 January 2020 at 22:12:10 UTC, Antonio Corbi wrote: On Tuesday, 21 January 2020 at 22:06:30 UTC, Ron Tarrant wrote: Do you still have the Maurer Rose example? I had to look this up. I'd never heard of it