- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 5
- Posts with Upvotes
- 4
- Upvoting Members
- 5
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Developper
- PC Specs
- Core Duo 2.66 GHz + 4 GB Memory, Windows 7
Re: Can you tell us more details about the problem? -Is the server receiving the command on the socket? -Is the command really executed on the server? Look for pipes if you want to capture the output of a command. You can capture it in a file, read it and return … | |
Hi, everyone! When I'm building my project on Visual Studio 2008 that uses Xerces, I have the following linker errors: [CODE=text] 2>XmlPersistingService.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static void __cdecl xercesc_2_8::XMLPlatformUtils::Initialize(char const * const,char const * const,class xercesc_2_8::PanicHandler * const,class xercesc_2_8::MemoryManager * const,bool)" (__imp_?Initialize@XMLPlatformUtils@xercesc_2_8@@SAXQEBD0QEAVPanicHandler@2@QEAVMemoryManager@2@_N@Z) referenced in function … | |
| Re: Here is some code that may help you: import string [CODE] file = open("example.csv", "rb") lines = [] for line in file.xreadlines(): print line lines.append(string.split(line, ',')) [/CODE] This method has one flaw: string.split also includes \r\n in the last string of the list. |
Hello, everyone! I'm starting to learn OpenGL and I have a problem with linear transformations. The program is very basic: I want to draw 4 squares and make them move individually (by doing translations and rotation). I understand that I need to stock all the transformation in a matrix, so … | |
Re: For the string errors, do one of these solutions: [CODE] #include <string> //You need that or any include of a C++-standard include file to make std recognized. using std::string; //OR using namespace std; //OR std::string blabla; //For each string variable [/CODE] | |
Re: If you need to wait for an amount of time and if you develop on Windows, use the Sleep function defined in <windows.h>. See this page: [url]http://msdn.microsoft.com/en-us/library/ms686298(v=vs.85).aspx[/url] Note that this approach is not portable on other platforms than Windows. | |
Re: If that may help... [url]http://www.cplusplus.com/doc/tutorial/classes/[/url] You shouldn't come on that site, copy/paste your homework and say "I don't understand. Please help!". | |
Re: Maybe the listProb lists have already an empty list inside after entering the loop. You can print their content before entering the loop. I guess that normDistProb returns an empty list somehow. | |
Re: Can you post the code that leads to this error? It looks like an import directive hasn't been written correctly. Or, have you modified matplotlib modules to make the importing directive fail? | |
Re: It depends of the paradigms you need to learn and of the languages you need to learn for a particular work. By learning a language, you'll reinforce your set of skills and you will be able to learn faster some features from other languages. For example, the foreach construct in … | |
Re: Check gSOAP. You can generate web service client or server code. [url]http://www.cs.fsu.edu/~engelen/soap.html[/url] | |
Re: You're using Windows, so use Process Explorer to know which program uses the .exe (In Handle\Find Handle or DLL..., enter the name of the .exe file and you'll get the process that uses the .exe and that prevents you from opening and deleting the file. If the process can be … | |
Re: The C++ syntax for memory allocation for array does not allow any shortcut like what's done in Java. You can always simulate the Javs syntax by creating a function that takes a variable number of arguments and returns an allocated int array with all the values received at their correct … | |
Re: C++ did not added any multi-thread support in their language, instead of other languages like Java (which is far younger than C/C++ and has been in the beginning of the multi-thread era). C++0x, the next revision of C++, will add thread support as a standard, so every compiler that will … | |
Re: On my machine (Windows), when providing a file that contains "a b c d e", I have this output: (1, 'a') (1, 'c') (1, 'b') (1, 'e') (1, 'd') There is no EOL character in the output, which is expected. So, the code haven't took the EOL character on my … | |
Re: This site will tell you all you need to answer your questions: [url]http://matplotlib.sourceforge.net/[/url] For the labeling part, look at this example. Pay attention to the xlabel and ylabel functions: [url]http://matplotlib.sourceforge.net/plot_directive/mpl_examples/pylab_examples/bar_stacked.py[/url] | |
Re: What are you trying to do with the Salary method of SalesReport? You want to modify the array passed as a parameter? Or you want to compute a total salary from the sales received? If you want to modify the array passed as a parameter, you're doing it with the … | |
Re: Ok... what's wrong with the actual code? | |
Re: Can you show your implementation of the overloaded operators you mentioned? | |
Hello, DaniWeb community! I want to know how I can delete environment variables in Python so that I can no longer see them outside of the execution of the Python script (on Windows, in "Advanced System Settings/Environment Variables...") This is what I tried: os.unsetenv deleting entries in os.environ, but it … | |
Hello! I need help to construct a regular expression in Python that will help me get the file name of a include directive in C++. I think that regular expressions are a good way to solve this problem, but I'm open to new ideas. Consider these following includes: [CODE] #include … | |
Re: I would add what is necessary to add... Who will be using your code? | |
Re: You can always take the part of the string before the ? character... Look for string.split('?'). | |
Re: From the Python documentation: exception ImportError Raised when an import statement fails to find the module definition or when a from ... import fails to find a name that is to be imported. In numpy/core/multiarray.py, is there a symbol named _vec_string? Is it a version of numpy under development? If … | |
Re: Since you're new to programming, I will tell you some programming tips: -Try to indent your code (inserting tabs or spaces when you're between brackets). It will make your loops (for), your conditions (if) and all your code more easy to read and understand. For example: [code] int main() { … | |
Hi, everyone! I'm having grave difficulties with generated JAR bundles from Maven OSGI plugin in Netbeans. When running the bundle from Netbeans, all works fine. But when I'm taking the generated JAR file from Maven and I'm using it outside Netbeans from command prompt and with Felix (java -jar bin\felix.jar, … | |
Hello, everyone! I'm not able to access a WSDL file on a remote machine. I am using DOSGI and I'm creating a service in a OSGI bundle. My container is Apache Felix. DOSGI takes care of exposing a OSGI service as Web services. DOSGI publishes a WSDL at [url]http://localhost:9595/prototype1Service?WSDL[/url] on … | |
Hello everyone! When I'm starting a OSGI bundle in my Apache Felix container, I have a ClassNotFoundException. This is the output that I have: [CODE] start file:/C:/Users/Pierre-Alexandre/Documents/NetBeansProjects/Prototype1/src/Prototype1Client.jar 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged INFO: bundle changed: null 23-Sep-2010 10:43:12 AM org.apache.cxf.dosgi.discovery.local.LocalDiscoveryService bundleChanged … | |
Hi, everyone! I'm in search of an associative container that does not need an implementation of operator< for the key type. std::map and std::set requires that, so I think that I need another kind of associative container. I can always implement my own contained using a vector of pairs, but … | |
Hello, everyone! I am unable to start a OSGI bundle. I'm using Apache Felix and this is my bundle: 1) Activator.java [code=java] package Example2; import java.util.Properties; import org.osgi.framework.BundleActivator; import org.osgi.framework.BundleContext; import Example2.Service.IDictionaryService; /** * This is the bundle. * @author Pierre-Alexandre * */ public class Activator implements BundleActivator { public … |