I;m trying to add a Entry but I get the following error:
mywindow.d(12): Error: undefined identifier Entry
Here is my code :
window.add(new Entry(Minsit));
I'm just guessing to see if everything is that simple. So I have
to define the Entry. How do I do that ? ( Any tutorials from the
web
Another version of the CLI which tries to keep 1440 minutes for a
complete day ( this is desired on the GUI ) is :
import std.stdio;
import std.c.stdlib;
void main()
{
immutable sitc = 1.66;
immutable sleepc = 1.08;
float tcsleep, tcsit, tc;
int minsleep, minsit;
write(Input minutes sit : \n);
A wild guess: import gtk.Entry;
Thank you I just did that some minutes ago ( a good guess ). Now
I'm trying to work on the layout so I can finally enter in
signals if that's how GTKD works.
On Tuesday, 30 April 2013 at 17:36:37 UTC, Carlos wrote:
A wild guess: import gtk.Entry;
Thank you I just did that some minutes ago ( a good guess ).
Now I'm trying to work on the layout so I can finally enter in
signals if that's how GTKD works.
For anyone interested in what I'm doing here
On Wednesday, 1 May 2013 at 08:53:18 UTC, Raphaël Jakse wrote:
Le 01/05/2013 10:42, Temtaime a écrit :
I'm new in D, so i'm tried to write some in that langugage.
That's story about how i tried to port OGL sample, that
renders one
triangle.
You can do much better with the D programming
I have this code :
import std.stdio;
import std.c.stdlib;
void main()
{
int fahr;
write(F\tC\n);
for (fahr = 0; fahr = 300; fahr = fahr + 20)
write(fahr, \t, (5.0/9.0)*(fahr-32), \n);
write(Done!\n);
exit (0);
}
Which works. but if I change the 5.0 for 5 I get cero on the
celsius side.
On Thursday, 2 May 2013 at 17:43:28 UTC, Mike Wey wrote:
On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote:
How to use GtkD with Glade? Is some tutorial available?
I spent some time trying to use Glade to build non-trivial
application,
but I do it very inproductive, so I'd like to get some help
I get thhis error when trying to compile it :
testgithub.d(3): Error: module Builder is in file
'gtk/Builder.d' which
cannot be read
import path[0] = /usr/include/dmd/phobos
import path[1] = /usr/include/dmd/druntime/import
import path[2] = /usr/local/includes/d
Try:
dmd testgithub.d $(pkg-config --cflags --libs gtkd-2)
It compiles but doesn't run well. I'm checking this comment on
the code.
/**
* Usage ./gladeText /path/to/your/glade/file.glade
*
*/
On Thursday, 2 May 2013 at 04:27:10 UTC, evilrat wrote:
On Thursday, 2 May 2013 at 02:07:23 UTC, Carlos wrote:
On Wednesday, 1 May 2013 at 08:53:18 UTC, Raphaël Jakse wrote:
Le 01/05/2013 10:42, Temtaime a écrit :
I'm new in D, so i'm tried to write some in that langugage.
That's story about
On Thursday, 2 May 2013 at 22:07:46 UTC, Mike Wey wrote:
On 05/02/2013 11:25 PM, Carlos wrote:
Try:
dmd testgithub.d $(pkg-config --cflags --libs gtkd-2)
It compiles but doesn't run well. I'm checking this comment on
the code.
/**
* Usage ./gladeText /path/to/your/glade/file.glade
On Friday, 3 May 2013 at 00:24:50 UTC, Alexandr Druzhinin wrote:
03.05.2013 6:12, Carlos пишет:
Normally the example looks for builderTest.glade in the
directory
where the binary is.
There one in the GtkD git
https://github.com/gtkd-developers/GtkD/blob/master/demos/builder
I was totally wrong - didn't look at code before :(
The right answer to your question is you can specify your own
glade file into command line as second argument like this:
builder /path/to/your/glade/file/your.glade
it will be enough
Ok I'll try that.
On Friday, 3 May 2013 at 00:30:00 UTC, Alexandr Druzhinin wrote:
03.05.2013 7:24, Alexandr Druzhinin пишет:
I can't believe an hour has passed so easy.
How do I specify the doferent glade ?, During compilation ?
if you mean glade file with different name then answer is yes.
but if
you just
On Friday, 3 May 2013 at 00:58:36 UTC, Alexandr Druzhinin wrote:
03.05.2013 7:55, Carlos пишет:
Sorry if this was too wild but this is what I can do at the
moment since
I don't see a gladeText program which I believe is required
for this
action I did my guess.
code:
dmd builderTest.d
On Friday, 3 May 2013 at 01:00:48 UTC, Alexandr Druzhinin wrote:
03.05.2013 0:43, Mike Wey пишет:
On 05/02/2013 03:58 PM, Alexandr Druzhinin wrote:
How to use GtkD with Glade? Is some tutorial available?
I spent some time trying to use Glade to build non-trivial
application,
but I do it very
On Thursday, 2 May 2013 at 22:07:46 UTC, Mike Wey wrote:
On 05/02/2013 11:25 PM, Carlos wrote:
Try:
dmd testgithub.d $(pkg-config --cflags --libs gtkd-2)
It compiles but doesn't run well. I'm checking this comment on
the code.
/**
* Usage ./gladeText /path/to/your/glade/file.glade
So I have this code I'm working on but I get weird results. What
am I doing wrong ?
Code :
import std.stdio;
import std.c.stdlib;
void main()
{
foreach (count; 1 .. 16){
write(Result : , (2)^(count), from : , count, \n);
}
}
Prints:
Result : 3 from : 1
Result : 0 from : 2
On Thursday, 13 June 2013 at 00:27:33 UTC, bearophile wrote:
Carlos:
Thank you for your time.
That's one bitwise operator. You want ^^
Bye,
bearophile
I didn't understoof in the first try but Infiltrator told me on
the #d irc chat and here is the new code.
import std.stdio;
import
I have this code :
import std.stdio;
import std.c.stdlib;
void main()
{
foreach (count; 1 .. 33){
write((2)^^(count), : , count, \n);
}
exit (0);
}
And here is the output :
2 : 1
4 : 2
8 : 3
16 : 4
32 : 5
64 : 6
128 : 7
256 : 8
512 : 9
1024 : 10
2048 : 11
4096 : 12
8192 : 13
import std.stdio;
import std.math : pow;
void main()
{
cast(ulong)count;
foreach (count; 1 .. 33){
write((2)^^(count), : , count, \n);
}
}
same output.
On Thursday, 13 June 2013 at 02:03:35 UTC, Jonathan M Davis wrote:
On Thursday, June 13, 2013 03:46:59 Carlos wrote:
import std.stdio;
import std.math : pow;
void main()
{
cast(ulong)count;
That line won't compile.
foreach (count; 1 .. 33){
write((2)^^(count), : , count, \n);
}
}
same
On Thursday, 13 June 2013 at 02:41:46 UTC, bearophile wrote:
Carlos:
What do I have to know about how D works with data ?
If you want to avoid the overflow, then use a BigInt from
std.bigint:
import std.stdio, std.bigint;
void main() {
foreach (immutable i; 0 .. 100)
writeln
I'm interested in this kind of functionalities does D have
something on this ?
I thought about something like a eval function that would use
specified algorithms.
something likes this
import std.stdio, std.math, atd.eval;
eval(Real a+b+c^^x=56){
algor.brute;
writeln(Real, , Positive
On Saturday, 15 June 2013 at 01:31:23 UTC, Carlos wrote:
I'm interested in this kind of functionalities does D have
something on this ?
I thought about something like a eval function that would use
specified algorithms.
something likes this
import std.stdio, std.math, atd.eval;
eval(Real
Well in C I just declared an array during execution with an array
with a multiplied variable for the size of the array.
Since I only need two spaces in the array for each line of
process it was multiplied by two.
so it was like this :
scanf(%d, Num);
int array[Num*2];
When I tried to do
On Tuesday, 19 November 2013 at 23:34:48 UTC, Ali Çehreli wrote:
On 11/19/2013 03:16 PM, Carlos wrote: Well in C I just
declared an array during execution with an array with a
multiplied variable for the size of the array.
Since I only need two spaces in the array for each line of
process
So I'm reading this tut from Ali :)
And we I got to this part :
A code example. http://pastebin.com/ESeL7dfH
But I want to declare this functions print outside of the file
and call the file to be loaded by the compiler. So I can use the
same solution in various program without having to copy
I just readhow to do it down on the list of tuts.
I did : dmd primes.d ./prime.d, and done program ran perfectly
Jarrett Billingsley jarrett.billings...@gmail.com a écrit dans le
message de
extern(C) int isatty(int);
And you should be able to use it. You shouldn't get any linking
errors, at least I don't think.
It worked fine.no link error.
isatty is sometimes used like this: isatty(fileno(fp))
So
Georg Wrede georg.wr...@iki.fi
Sorry, somebody else has to help, I'm not using Windows. :/
LOL!
You actualy helped a lot. You are not using Windows !
It works on Linux but not on Windows.
Now, it may work on Windows too. But stream.d must
be modified to take care of the differences between
QUESTION:
Obviously I'm no geting mixins/templates nor traits and I'm
failing miserably to find/identify the right examples or
documentation to help me tackle this thing. What is wrong in this
code? is this pattern sintactically possible? what I'm getting
wrong?
CONTEXT:
I'm a newbie
As a newbie in D (and making a lots of mistakes), I've found
myself relying heavily in the use of a rudimentary type inspector
to visualize my templated code instantiations.
It's simple and incomplete as hell but good enough to see what
happens under the hood quickly.
QUESTION: Is there a
On Wednesday, 17 February 2021 at 12:27:16 UTC, Ferhat Kurtulmuş
wrote:
On Wednesday, 17 February 2021 at 12:12:56 UTC, Carlos Cabral
wrote:
Hi,
I'm trying to collect some json data from a website/admin
panel automatically, which is behind a login form.
Is there a D library that can help me
Hi,
I'm trying to collect some json data from a website/admin panel
automatically, which is behind a login form.
Is there a D library that can help me with this?
Thank you
On Wednesday, 17 February 2021 at 13:13:00 UTC, Adam D. Ruppe
wrote:
On Wednesday, 17 February 2021 at 12:12:56 UTC, Carlos Cabral
wrote:
I'm trying to collect some json data from a website/admin
panel automatically, which is behind a login form.
Does the website need javascript?
If not, my
On Wednesday, 17 February 2021 at 13:13:00 UTC, Adam D. Ruppe
wrote:
On Wednesday, 17 February 2021 at 12:12:56 UTC, Carlos Cabral
wrote:
I'm trying to collect some json data from a website/admin
panel automatically, which is behind a login form.
Does the website need javascript?
If not, my
37 matches
Mail list logo