I am interested in building a search solution with Lucene.Net for pdf and MS Office documents. My idea is to have a Windows service that runs and indexes files on a scheduled basis. From my cursory reading I have to use a COM filter from Microsoft that perform indexing on the .docs, .ppts, etc.
What issues did you encounter and how ...
I am learning C and am trying to write a program that will take 2 value from a user and will check if these strings are binary values (composed of the characters 1 or 0 is how I approached it) before attempting to, according to user selection:
Add the two values,
Subtract input 2 from input 1, or
Multiply the two values.
I can implem...
I'm preparing to write a photonic simulation package that will run on a 128-node Linux and Windows cluster, with a Windows-based client for designing jobs (CAD-like) and submitting them to to the cluster.
Most of this is well-trod ground, but I'm curious how C# stacks up to C++ in terms of real number-crunching ability. I'm very comfort...
I'm currently making a function using pygame that draws a message on the screen, adding one character each frame (i.e. The Hunt for Red October). I know that I could simply copy (or pass) gradually bigger slices from the original string, but I know that it would be very resource-intensive. Is there a better way to do this?
Code, using...
(My apologies, this is a 2nd post to http://stackoverflow.com/questions/3390175/most-efficient-way-to-determine-if-a-string-length-0 but I can't figure out how to reply to people's answers, my reply becomes posted as an 'answer')
Ideally, what I'm looking for is the most efficient algorithm to do the following (which will be called 100m...
Say I'm creating a raster-based paint program. My brush is ellipse-shaped. The user clicks and then drags the mouse to paint an area. I now have two points: pointA (where they clicked) and pointB (the first point returned from the mouse-drag). I want to fill in all pixels that fall within the brush region. What's the best way to do ...
What is the most efficient way of getting current time/date/day/year in C language? As I have to execute this many times, I need a real efficient way.
I am on freeBSD.
thanks in advance.
...
So here's what I'm doing -- I have a ruby script that prints out information every minute. I've also set up a proc for a trap so that when the user hits ctrl-c, the process aborts. The code looks something like this:
switch = true
Signal.trap("SIGINT") do
switch = false
end
lastTime = Time.now
while switch do
if Time.now.min ...