Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
~23.3K People Reached
PC Specs
i7 930 2.8 Quad Core6GB DDR3WD 640GB & 320GBATI HD 5700Sound Blaster X-Fi
Favorite Tags
Member Avatar for SCass2010

Hi everyone, I seem to be having a bit of a weird problem with sockaddr / sockaddr_in structs... I want to manually assign the value of an IP address to the sockaddr_in struct, and I've been using memcpy memcpy (&(mIp4sa->sin_addr.s_addr), "127.0.0.1", INET_ADDRSTRLEN); But when I go to print out the …

Member Avatar for Sameer_4
0
2K
Member Avatar for SCass2010

Hi all, Wondering if anyone could help - I have a project I'm working on - part of it involves loading a list of resource files at runtime. I can hardcode each file and use the ClassLoader.getResource("....") to get each file, but I was wondering is there a way to …

Member Avatar for JamesCherrill
0
199
Member Avatar for SCass2010

Hi all, Bit of a strange question but here goes... In my App.Config, I have a few parameters set, like connection strings, that locate and use a database stored in the user's my documents folder - <connectionStrings> <add name="DatabaseConnectionString" connectionString="Data Source=D\:My Stuff\Documents\My App\MyAppDatabase.sdf" /> </connectionStrings> I was wondering, rather than …

Member Avatar for SCass2010
0
1K
Member Avatar for SCass2010

Hi everyone, Currently for a university project I am building a server that can send notifications to a mobile device. Part of the project involves building a front end where I can configure everything for the server - updates to send, rules and so on. On the front end I …

Member Avatar for nmaillet
0
255
Member Avatar for SCass2010

Hi all, I was looking to make an android app that gets data from a C# wcf server - at the minute I can pull some basic data and they are communicating - however what is the best way to create an app like this? I know that networking operations …

Member Avatar for peter_budo
0
103
Member Avatar for SCass2010

Hi everyone, Just wondering if anyone could give me a bit of advice... For a project at university I'm going to try and create a sort of stock market advisor. Basically it will take data say from Yahoo, parse it, and based on certain rules provided by a user it …

0
85
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could help - I'm trying to split up a char* that contains a string, something like "*Stephen*10:11:00*02/07/2012*Hi there" I'm trying to split it up so it gets the position of the first * then the second, and stores whats between them in name …

Member Avatar for L7Sqr
0
2K
Member Avatar for SCass2010

Hi everyone, Not really a problem as such but jsut wondering if anyone could explain this - when I build a product, the binary executable is roughly 50mb when done. When I tar it up and gzip it (tar -cvf *name* *file*; gzip -9 *file*) and unzip it the bianry …

Member Avatar for mike_2000_17
0
121
Member Avatar for SCass2010

Hi everyone, At the moment I'm trying to create a class that contains a DOMNode* pointer, something like this class MyDOMNode { public: MyDOMNode (DOMNode* node) : mDomNode (node) { } bool operator== (const MyDOMNode& rhs) { if (mDomNode == rhs.mDomNode) return true; return false; } bool operator!= (const MyDOMNode& …

Member Avatar for deceptikon
0
159
Member Avatar for SCass2010

Hi everyone, I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering - in C++ you could have a header file with functions only in it, say …

Member Avatar for SCass2010
0
359
Member Avatar for SCass2010

Hi everyone, Wondering if anyone could help with a minor problem... I have a class that contains a std::map that stores pointers to various objects as a void pointer and a name for the object, so within the class I have a template function where the object type is passed, …

Member Avatar for mike_2000_17
0
2K
Member Avatar for SCass2010

Hi everyone, Was wondering if anyone could help... I know the std::map automatically sorts it values - I have a map a Date object pointer, and a bool for whether it is to be used or not. But I need the dates to be in order from earliest to latest …

Member Avatar for ravenous
0
1K
Member Avatar for SCass2010

Hi everyone, Again, I'm just trying stuff out to try and learn a bit more but here goes... I created a small Logger util - I included the pthread library and added a mutex lock in each of the "write*" functions, tested it by running a few instances of a …

Member Avatar for varungandhi
0
2K
Member Avatar for SCass2010

Hi everyone, Just wondering if anyone could help. At the minute I need to check a command line for the parameter "--date=something", I've been using the re module with python like this cmd = "python myapp.py --name=stephen --date=20120323 --test=testthis" found = re.split (r"--date.*", cmd) print found but this prints the …

Member Avatar for TrustyTony
0
180
Member Avatar for SCass2010

Hi everyone :) At the minute I'm working on some stuff learning c++ and was wondering if ayone could offer some advice... Say I have a pile of objects that need to be created (for example say, a Log object, XML parsers object, and a command line parser object). In …

Member Avatar for Bench
0
195
Member Avatar for SCass2010

Hi everyone, I'm not even sure if this is possible, but I seem to be struggling at the minute with it so here goes... I have a main.cpp where severeal different objects of different classes are created, such as say Log, ConfigManager, XMLReader and so on - what I'm trying …

Member Avatar for SCass2010
0
112
Member Avatar for SCass2010

Hi everyone, I'm currently on a placement and doing some other work on the side and I was hoping someone can help me... I've started playing around with xerces-c in work on redhat to read in small xml config files - I also have some applications I was working on …

Member Avatar for floored1585
0
2K
Member Avatar for SCass2010

Hi everyone, At the minute I'm trying to learn XML and reading/parsing xml files with c++ but I seem to be a bit stuck :( I've an xml file [CODE] <?xml version="1.0" encoding="UTF-8" standalone="no"?> <NormalisedFileCheck> <ExpectedFiles> <File>File_Num_1</File> <File>File_Num_2</File> <File>File_Num_3</File> <File>File_Num_4</File> <File>File_Num_5</File> </ExpectedFiles> <ValidProducts> <Product> <Family>Windows</Family> <Name>Windows 7</Name> </Product> <Product> <Family>Linux</Family> …

Member Avatar for jaskij
0
373
Member Avatar for SCass2010

Hi all, Was wondering if anyone has had a similar problem.. at the minute I have a few Western Digital 1tb drives, that I have connected to a server running red hat 5 (RHEL 5), but for some reason they aren't showing up at all, even when I try df …

Member Avatar for SCass2010
0
156
Member Avatar for SCass2010

Hi, I current I have a vector <void*> that I need to populate with values, stored as char*. Is there a way to convert to void*, then back to char* whenever needed? I have tried casting and using static/reinterpret_cast but when I try to output (converting from void* back to …

Member Avatar for SCass2010
0
1K
Member Avatar for SCass2010

Hi everyone, I'm trying to write a script that will list all files and their details within a directory - so for example, if I have the structure /home/ /home/folder1/ /home/folder2/ /home/folder3/ It will print something like +---------------------------- | /home/folder1/ +---------------------------- | *files here* | *size* +---------------------------- | /home/folder2 +---------------------------- …

Member Avatar for griswolf
0
117
Member Avatar for SCass2010

Hi everyone again :) Bit of a weird problem, but is there any way of counting how many keys are stored within a multimap? Say for example I have the keys A, B, C and D. Each of these keys have say 100 values for each, so there should be …

Member Avatar for vijayan121
0
1K
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could help - at the minute I have a program that records how many bytes are received over a set interval (for example, 500 milliseconds). How would you calculate how many megabits have been received per second if the sampling interval will always …

Member Avatar for doug65536
0
708
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could help me - at the minute I have a c++ program that renames a file and then attempts to move it too a new folder using linux commands and passing them to the 'system()' function. It renames the files no problem - …

Member Avatar for SCass2010
0
211
Member Avatar for SCass2010

Hi everyone (again!!) Sorry for all the questions, but I was wondering if anyone could help me a bit.... I jknow a bit about passing command line parameters when running a C++ app on Ubuntu through the terminal. At the minute I have the app either running with no command …

Member Avatar for SCass2010
0
246
Member Avatar for SCass2010

Hi everyone, I was wondering if anyone could provide a bit of help, I need to store an integer value that is 20 bytes in length - I know theres an int32_t and int16_t, but I can't seem to get an integer stored that is only 20 bytes!! I've also …

Member Avatar for Duoas
0
1K
Member Avatar for SCass2010

Hi everyone, I'm trying to learn C++ and about pointers and whatnot and seem to be a bit stuck... one of the exercises we were given involves passing an object (a Driver object) by reference to another object (a Manufacturer), which stores it. The Manufacturer object can then "employ" and …

Member Avatar for NathanOliver
0
134
Member Avatar for SCass2010

Hi everyone, Not sure if this is the right place to post this so sorry in advance if I'm lost!! I have recently secured a placement / intern at a IT company as part of my university course. I also have a profile on LinkedIn, and I've noticed since I …

Member Avatar for SCass2010
0
159
Member Avatar for SCass2010

Hi everyone, I've recently started learning C++ and was wondering does anyone know any good networking tutorials for C++? I've tried searching but alot of them seem to be a bit over-complex - I've done network programming with Java in uni and a good bit of C++, but was hoping …

Member Avatar for Mouche
0
213
Member Avatar for SCass2010

Hi everyone, As part of an assignment we have to develop a recursive backtracking solution in java to a sort of knapsack problem - you have a 150mm bar, a set of orders you have to cut and you need to come up with the best solution that gets the …

Member Avatar for bibiki
0
682