Hi, I just installed Apache/MySQL/PHP for our web server. I'm trying to figure out how Apache works with MySQL and http. I created a program in C# that connects to MySQL, but the connection doesn't require me to specify a port number. This is kinda confusing to me. In the MySQL config it defaults to ports 3306 for the client and server listening. Does Apache somehow know MySQL is listening to these ports? How does the connection to MySQL work? Thanks.
bwagz
Posts
-
MySQL connection -
FTPI'm trying to implement a software registration in my application. When the user registers, it checks our server for the software license they entered to see if its' valid. From what I've read on the web, I needed to do this using FTP. I'm still using VS2003 so webclients are not available. Everything seemed to work fine until one of our customers was behind a well protected firewall. For datasocket transmission I'm using PASV mode, but they still can't register. In fact, they can't even log into our FTP server. My question is: Is using FTP the best way of sending files and data between server and client with C# .NET 1.0? If so, how would this customer register if behind a firewall. Would they need to have their IT guys allow access to our IP address? Thanks, Brian
-
Managed DirectX LightingI'm fairly new to Managed DirectX, but I'm having a lighting issue. For my app, I'm using a single light to reflect off of a cylinder that has multiple colors around it. Whenever I run the application on my machine the colors are shown fine. However, any other machine I install the simple app on (created using Visual Studios' Setup and Deployment wizard), the cylinder appears completely black. In the code I check the machines video card for lights, and it returns positive. Even when I set the devices.RenderState.Ambient for the machine, it still comes out black. I've tried installing the app on several machines with no luck. Any advice??
-
installing application to a serverHi, I was wondering how a c# application can be installed and ran from a server. Allowing the application to be shared among a networks client pc's. The application i created contains registry information required for program execution. Thanks for any help Brian
-
double bufferingIs it more efficient to use the Win32 API with BitBlt for double buffering or simply the .NET way with SetStyle? I've seen many web sites that offer different opinions on this. When I'm looking at the drawing performance, it seems that BitBlt is slightly faster (Even though I doubt it's using any hardware acceleration).
-
Plotting with drawLinesThe magnified portion is plotting a lissajous signal, so the display width isn't a factor. I thought about "skipping" datapoints, but wouldn't that misinterpret the data being displayed? Thanks for the reply
-
Plotting with drawLinesThe program I'm creating allows a user to scroll through a waveform consisting of 10,000+ data points. As the user scrolls through the waveform, a magnified portion of it is displayed on another area of the screen. The magnified portion can plot anywhere from 0 to the entire length of the waveform's points. Right now I'm having a major refresh slow down when the number of data points for the magnified portion is too large. To plot all of the points I'm using the Graphics.DrawLines() method. To help the performance I also added a Timer (50ms) to limit the number of Invalidate()'s when the user is scrolling, which helps a little bit. I tried drawing the magnified portion with an offscreen memory bitmap, but it didn't really me. Can direct draw help me with this in any way?
-
legacy softwareHi, Last year I created a program that uses binary serialization for file saving. In the near future I'm planning on creating a new revision of this program, which will include many class structure changes from the current version. It seems that when using object serialization, adding and changing variables to current classes will cause errors during deserialization of older files. Are there ways to allow files created by older software versions to be compatible with newer ones? This is an area of programming I've never really explored. I'm unsure of common practices. Thanks for any tips!
-
.net reporting addinDoes anyone know of a good 3rd party .net reporting package? I tried using the crystal reports package included with visual studio, but the software doesn't let the user enter information directly onto a generated report. If anybody knows a good one, please let me know. thanks Brian
-
gdi+ slowoh great....i'll def look into it, thanks :)
-
gdi+ slowso when you say that i wouldn't get the native look and feel, does that mean the screen would blank out similiar to when running a video game?
-
gdi+ slowHi, This might be a stupid question, but is it possible to incorporate directx/opengl into say a data acquisition application? i've pretty much tried every technique possible from double buffering to more efficient screen invalidating but the refresh speed is way to slow. So I was wondering if there is a way to include hardware acceleration into a win app. thanks, Brian
-
usb driverHi, I've been given this project where I have to design a device driver that can communicate via USB with hardware that does voice recognition. Where do I begin!!?? I'd like to write the driver in either C or C++ and was hoping to find some type of USB starter kit on web somewhere. I really need a starting point, something that will show me how the communication is done. I read that Windows OS provides generic drivers for USB, which I'm not sure if these will be usuable for this application, or if I'll need to create my own custom class. Does anyone know a good place to begin something like this. If anyone can recommend a good starter kit (relatively cheap) that would be great. thanks, Brian
-
(null) is not a valid win32 appI installed my application on a computer and it worked fine for a day. The next day that I double-clicked on the .exe for the app I got this dialog box error message that pops up, ".exe (null) is not a valid win32 application". It's really strange, especially since as I said it worked fine after I initially installed it (i was even able to close it and load it again after installing, not until the next did this occur). I used .net's setup and deployment wizard to package the app, which had worked fine in the past. The only thing i can think of, when i was building the installer, i had a few warnings on the compiler being unable to find some of the dlls. Has anyone seen this occur before? thanks
-
curve fittingI'm trying to do logarithmic curve fitting to plotted data points. The equation is as follows: y = a + b*ln(x) The problem is that I have no clue how to compute the 'a' and 'b' coefficients. Can anyone think back to scientific comp to remember how this is done? Thanks
-
pdf rotated text w/ Acrobat 6.0Hi, I'm having a problem printing my rotated text with Acrobat 6.0. For some reason, the pdf print out scales the rotated text to a much larger value. To draw and rotate the text, I'm using the following: GraphicsContainer container; container = g.BeginContainer(); Matrix myMatrix = new Matrix(); myMatrix = g.Transform; myMatrix.RotateAt(m_Rotation, m_RotationPoint); g.Transform = myMatrix; g.DrawString(m_Text, m_Font, myBrush, myRect); g.EndContainer(container); Rotated shapes are printed out properly, its just the text with the problem. I'm not sure if this is an issue with gdi or what?
-
gdi line cursorI'm trying to create a dragging data cursor that can be dragged horizontally on an xy plotted graph. Currently, every time the cursor gets dragged, i have to redraw the entire plotted graph. Is there any way to simply redraw the cursor in its new position without redrawing the entire graph. The graph is currently created as a user control and the cursor is simply a line drawn in the control. thanks
-
binary file readingThe data is suppose to be x and y coordinates, so +/- integer values. I wasn't given any more information besides that. Is this a text encoding problem? Do you have any suggestions on how to test the LSB and MSB problem, I'm not very familiar with this or with binary file reading in general. thanks for the response
-
binary file readingI was given a data file to read which is in binary format. I was told that the data starts in the file at position 0x1000. Each value following the offset is a 2byte short value. I tried reading in the file using fstream.ReadInt16(). It looks like some of the data is matching up correctly but the other isn't. Below on the left is what the data should be and on the right is what i'm getting 2 2 68 -188 -22 234 18 18 85 85 130 386 454 710 626 114 82 82 127 639 617 617 558 -210 As you can see some of it is matching up. Does anyone know what i'm doing wrong??
-
binary file reading and convertingHi, So I was given this data file, which i think is in binary format and i have to extract data from it starting at an offset of 1000. I tried opening the file in Wordpad and really have no clue how its encoded. I was able to mimic the way it was displayed in wordpad using a streamreader with a text encoding of utf7 then writing it to the console. Each value I'm trying to extract consists of 2 bytes and I have to convert this into a positive/negative integer. I tried many ways of doing this but was unable to get the right result. I noticed first of all, that the values i'm getting largely consist of zeros and all positives which is way wrong. The whole idea of binary files are so foreign to me and i have no clue where to begin on this. I really wish they had started us on C in school rather than java...:sigh: thanks in advance