this is yet another reason why I hate M$, if M$ had of stuck to the standard, we wouldn't have as much compatibility issues and we wouldn't need to reinvent the wheel every time M$ hasn't stuck to the standard.
brendan
@brendan
Best posts made by brendan
Latest posts made by brendan
-
RE: Web 3.0 brainstorming
-
RE: Any X WHERE X eid WTF
check out the following (yet another WTF on that site) Link
-
RE: A New Person Programming
@jrwr00 said:
I want to learn a programming language, but i don't know where to start, now i do like PHP and i've fiddled around with it, any ones out there NOT for websites,
I would go with C(learn pointers), Java(learn Object Oriented programming) or PASCAL(don't know, but it's a good language to learn, because some languages have similar syntax).
Really It doesn't matter which language you start with, as long as you can get comfortable programming in the language and learn how to solve problems (i.e using data structures and basic constructs such as while loops, do...while loops, for loops, ifs and recursion). the post 110813, has a very good explanation.
-
RE: Modern compiled language? Good GUI toolkit?
If your wanting to learn the same think a lots of times and be restricted to only running on a M$ system than learn WTL or a .NET based language (i.e C#.NET, J#.NET, C++.NET), but if you looking to learn once use many than use wxWidget (which will work on MAC, Unix and Windows). C/C++ are cross platform languages which means unlike C# will never become outdated.
-
RE: Php pdf creation
@DaBookshah said:
Hi. I currently have the task of maintaining a mamoth php program, which involves pdf generation(using fpdf). The first time i saw the pdf generation code I looked like the guy pictured top-left. And there's LOTS of code like this, the entire(long) document is created from scratch in php.
$pdf->AddPage();
$pdf->HeadingFont();
$pdf->SetLeftMargin(15);
$pdf->SetY(30);
$pdf->AnswerFont();
$pdf->Cell(0,5, '');
$pdf->Ln();$today_date = date("d M Y");
$pdf->Cell(0,5, $today_date);
$pdf->Ln();
$pdf->Heading2Font();
$pdf->Cell(0,5, "Text", 0, 0, 'R');
$pdf->Ln();
$pdf->Cell(0,5, "More Text", 0, 0, 'R');
$pdf->AnswerFont();
$pdf->Ln();
$pdf->Ln();
$pdf->Ln();Seriously, there has GOT to be a better way. Is there a better library? Can I perhaps use some sort of template and just insert in the bits that change? As you can see I'm new to this php/pdf thing.
yeah, try PDFlib . also you could try using '\n' in the original text in order to remove the Ln() calls (note this is only in theory, as I could not be bothered installing the fpdf library).
-
RE: New Software is Here!
@iwpg said:
@Alex Papadimoulis said:
My bad -- I meant, 50 Articles, sorted by Last Comment Date -- kinda like how you could do it in the forums.
Yeah, that sounds great, thanks. Would it keep track of read/unread for each thread for the current logged in user? I could live without that, but it would be nice.
this should be already maintained by the RSS feed reader (well mine does).
-
RE: New Software is Here!
I like this new forum software, it's quicker than the last. I do like the fact that on the front page, the articles are now truncated, which increases the speed of load time and also consumes less bandwidth.
-
RE: My WTF coding or not?
I just did a quick Google search and found the following article which may be of any help
http://support.microsoft.com/?kbid=265879
-
RE: My WTF coding or not?
I'd say you making a invalid request to the driver when you shutdown you application. Maybe you haven't handle the request correctly(i.e haven't returned the correct value).
Another reason could be because M$ has change it's specifications without anyone knowing and is sending a different request to the driver (somehow display a little message or log one. This is first to see if your handler is being called and second test where about it is getting up to before it crashes (which means that you can narrow down the possibilities as to where the problem could be)).
Or you haven't shut the driver down at all and the OS is trying to shut it down for you (which your not handling the shutdown properly).
-
RE: "I think I'll use AJAX and PHP and generated images as a background to fake support for a CSS3 element"
I'd hate to be a maintainer of this code. 681 lines for something very simple like this.