Hi,
I am looking for a C++ library for image processing. I need the library to threshold a PPM photo (color photo). Should I write my own code? what do you guys think? Thanks in advance.
Following features to remove from c++ and desired features for c++ I thought why not complete the trio... what features are you happy about in C++ and don't want to change at all? What features are elegantly and brilliantly implemented and still look better than other more modern languages
I have the following code:
$sql = "SELECT name, address, city FROM tableA, tableB WHERE tableA.id = tableB.id";
if (isset($price) ) {
$sql = $sql . ' AND price = :price ';
}
if (isset($sqft) ) {
$sql = $sql . ' AND sqft >= :sqft ';
}
if (isset($bedrooms) ) {
$sql = $sql . ' AND bedrooms >= :bedrooms ';
}
$stmt = $dbh->prepare($sql);
if (isset($price) ) {
$stmt->bindParam(':price', $price);
}
if (isset($sqft) ) {
$stmt->bindParam(':price', $price);
}
if (isset($bedrooms) ) {
$stmt->bindParam(':bedrooms', $bedrooms);
}
$stmt->execute();
$result_set = $stmt->fetchAll(PDO::FETCH_ASSOC);
What I notice is the redundant multiple IF statements I have.
Question: is there any way to clean up my code so that I don't have these multiple IF statements for prepared statements?
Uninstalled VS2010 Beta 2.
Uninstalled .NET Framework 4 Extended Beta 2.
On attempting to uninstall .NET Framework 4 Client Profile Beta 2. I get
Blocking Issues:
You must uninstall the .NET Framework 4 Extended Beta 2 before you uninstall the .NET Framework 4 Client Profile Beta 2.
On attempting to reinstall Framework 4 Beta 2 I get:
Details:
Same or higher version of .NET Framework 4 Beta 2 has already been installed on this computer.
Please help!
Can I simply remove registry entries and the C:\WINDOWS\Microsoft.NET\Framework\v4.0.21006 directory?
How to get the UTC time in milliseconds under windows platform. I am using Standard library which give me UTC time in seconds, I want to get time in miliseconds, kindly give me the reference of any other library which give me the accurate UTC time in miliseconds.
Our computer science teacher once said that for some reason it is more efficient to count down that count up.
For example if you need to use a FOR loop and the loop index is not used somewhere (like printing a line of N * to the screen)
I mean that code like this :
for (i=N; i>=0; i--)
putchar('*');
is better than:
for (i=0; i<N; i++)
putchar('*');
Is it really true? and if so does anyone know why?
I've been coding application level software for a while now. I've had some experience with internet (server/client based) applications, but that has been fairly scant. The field doesn't scare although I know that experience can be almost be measured in gold. I see myself as a highly qualified and experienced programmer, but I also see my short comings in these fields.
Does this count against me (and others like me?) and would this cut anyone from obtaining the shortlist or are there other factors which bear more weight?
I know that the additional consideratiosn when compiling for x64 is that some data types, like ints, can hold larger values. Are there any concerns?
VS2010, released a few days ago, can support compiling for x64 and x32, just like VS2008. The app is x32/86 only. I keep thinking that the app needs to be 64 bit however. What am I missing? Obviously this is not the case.
Thanks
When coding, I often come across the following pattern:
-A method calls another method (Fine), but the method being called/callee takes parameters, so in the wrapping method, I pass in parameters. Problem is, this dependency carrying can go on and on. How could I avoid this (any sample code appreciated)?
Thanks
haw do you read an incomming tcp stream until a specific delimiter is found in C#?
the only possible solusion i have come up with is reading the incomming stream one byte at a time.
As a result of a conversation with a colleague today, I've been searching (unsuccessfully) for a large'ish list of what technology stacks are being used popular websites and standalone applications today. We're aware of the big ones like Facebook (php/ ), Twitter (scala/cassandra), Youtube (python/?), Digg (php/cassandra), stackoverflow (.net mvc/sqlserver), but we're looking for a more complete list. It would also be interesting to hear about any stats for desktop apps also?
Can anyone help?
Is it possible to create a sql database instance with C# code. I have no problem adding a database to an existing SQL instance, for example WONEA\SQLEXPRESS but for creating another SQL instance such as WONEA\SQLEXPRESSTEST I'm a little stumped. Help!
What makes a language a scripting language? I've heard some people say "when it gets interpreted instead of compiled". That would make PHP (for example) a scripting language. Is that the only criterion? Or are there other criteria?
Well i got this job offer and they expect alot i say. i know most of this but, i would like to know what type of pay i should expect. I dont well to sell short you know.
with Web Designer: Dreamweaver, HTML, JavaScript, Graphic Design/Manipulation, Templates, Layouts, Navigation, Flash/Multimedia Objects. Programmer: PHP, Web Application Development, MVC, Joomla, AJAX, JQuery, My SQL (SQL, Database).
The question I always wanted to ask and was afraid to, actually - what language is .NET Framework written in? I mean library itself.
It seems to me that it was C and C++ mostly. (I hope Jon Skeet is reading this one, it`ll be very interesting to hear what he thinks about it)
Hi All,
Previously Ctrl + D was assigned to an application by a shortcut on Desktop.
The shortcut is now deleted but shortcut key is still assigned to the same application.
I need to reassign Ctrl + D to a new application.
Regards and Thanks,
Hi,
Is it possible to hold an open TCP connection with a client, while the IP address of the client is externally changed?
For example, the connection is establishes against address X, but somewhen while the connection is open, the client-side user asks for IP renew and gets another IP address. Can the connection remains alive in this case?
Thanks in advance.
I just on internet the Google is using swig.
Does any one have used that and tell me will it be helpful for me.
I mean why it is used and how it can make my work good.
As google is using it must be good
I'm trying to write a rogue-like game for my blackberry and hopefully
any other phone that supports some sort of JVM.
Because I use Java in my job I'm looking to write the game in another language but I cannot find a language that will work on multiple phones.
Am I stuck with Java?
I have a spreadsheet that has a column of cells where each cell contains a single work. I would like to count the occurrences of some words. I can use the COUNTIF function for most words, but if the word is "true" or "false", I get 0.
A B
1 apples 2
2 true 0
3 false 0
4 oranges 1
5 apples
In the above spreadsheet table, I have these formulas in cells B1, B2, B3 and B4:
=COUNTIF(A1:A5,"apples")
=COUNTIF(A1:A5,"true")
=COUNTIF(A1:A5,"false")
=COUNTIF(A1:A5,"oranges)
As you can see, I can count apples, but not true or false. I have also tried this:
=COUNTIF(A1:A5,TRUE)
But that does not work either.
Note -- I am using Excel 2007.
Hi guys, I want to be a web developer and mobile web developer...I know HTML
I've done some research and read that XML and XHTML are necessary. Are there any other languages that I need to know? Would knowledge of Flash help me in my quest?