Posts
 
Reputation
Joined
Last Seen
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
42% Quality Score
Upvotes Received
3
Posts with Upvotes
3
Upvoting Members
2
Downvotes Received
4
Posts with Downvotes
3
Downvoting Members
4
2 Commented Posts
~36.4K People Reached
Interests
sports , computers , music
PC Specs
Win 7 Ultimate Fedora 11
Favorite Tags
Member Avatar for vbx_wx

[CODE] void HandleConnection() { cout << "You are connected !!!" << endl; char temp[30]; Recv(temp, sizeof(temp)); if(temp[0] == 5) // test for version { cout << "Version good" << endl; char* reply = new char[2]; reply[0] = 5; // version reply[1] = 0; // method choosed (no auth required) Send(reply, …

Member Avatar for Jake_7
0
20K
Member Avatar for vbx_wx

This is how I want my XML file to look: [code] <root> <data> <track src="123456"> <desc id="1" mt="audio/mp3" ra="24" dr="221" nv="10005761">Madonna - La Isla Bonita</desc> <clipdata>PD94bWwgdmVyc2lvbj0iMS4wIiBlb</clipdata> </track> </data> <completed/> </root> [/code] And this some part of my code: [code] AttributesImpl atts = new AttributesImpl(); AttributesImpl atts2 = new AttributesImpl(); AttributesImpl …

Member Avatar for peter_budo
0
239
Member Avatar for vbx_wx

I am not used to php but i need to use a script now, but it always give me a windwos error. This is my script: [code] $PHP_PATH = "c:\Program Files (x86)\PHP\\"; $PHP_PATH = addcslashes($PHP_PATH, ' '); $VR_PATH = dirname(__FILE__)."\VRClient.php"; $VR_SERVER = "http://localhost:8080/vrmobile/VRServer"; $handle = popen("C:\WINDOWS\system32\cmd /C start ".$PHP_PATH." -f …

Member Avatar for vbx_wx
0
112
Member Avatar for vbx_wx

I'm trying to print all .pdf files from a partition using Boost.Filesystem and Boost.Regex but when I run my program, Visual Studio 2010 gives me an Abort error. Here is my code: [code] path Path = "e:\\"; boost::regex reg("*.pdf"); for(recursive_directory_iterator it(Path); it != recursive_directory_iterator(); ++it) { if(boost::regex_search(it->string(), reg)) { cout …

0
54
Member Avatar for vbx_wx

I want to open a process in the background and it should be invisible in both Linux and Windows. I made something like this, but I don't know the console still appears on the screen: [code] command = "cmd /C dir c:\\" startupinfo = None if os.name == 'nt': startupinfo …

0
55
Member Avatar for vbx_wx

How can i rewrite set::inser() function,using a vector::insert() : [code] class Set { std::vector<T> set; public: void insert(const T& t) { set.insert(set.end(), t); } [/code] I tried to insert them at the end,but it wont work corectly.

Member Avatar for dexblack
0
138
Member Avatar for vbx_wx

I have a sockets projects using tcp/ip and it is structured like this: [code] class Socket { int desc; Socket(); // create socket here }: class TCPSocket: public Socket { public: int send(); int recv(); }; class ClientSocket: public TCPSocket { public: void connect(); }; class ServerSocket: public Socket { …

Member Avatar for vbx_wx
0
164
Member Avatar for vbx_wx

With witch header do you use this function ? I tried winsock2.h, ws2tcpip.h with no luck. Any help please ?

0
110
Member Avatar for vbx_wx

I am trying to send a structure via tcp/ip,i dont know if i am doing it good,it prints a strange chaarcter in my screen.Here is my code that i am using to send and recv: [code] void Send(const void* buffer, int size) { int n; if((n = ::send(desc, (char*)&buffer, size, …

Member Avatar for gerard4143
0
142
Member Avatar for vbx_wx

I made a server and i tryed connecting using a telnet saying "Connection refused" . What am I doing wrong ? Thanks in advanced. [code] /* * server2.cc * * Created on: Jan 29, 2011 * Author: astanciu */ #include <iostream> #include <winsock2.h> using namespace std; class Server { WSAData …

0
65
Member Avatar for vbx_wx

I made a lot of client server programs using tcp/ip but how do i know what version of socks protocol i used ? I just heard about socks5 and i was confused what kind of version i was using until now . Thanks

0
59
Member Avatar for vbx_wx

Hello,my question is: Is there any way i can make my current account to have admin rigths? I search on google but instead of give my current account admin priviliges it created a new Administrator account. I am using win 7

Member Avatar for caperjack
0
115
Member Avatar for vbx_wx

Is there any difference between polymorphism implemented in c++ and the one implemented in python ?

Member Avatar for bumsfeld
0
70
Member Avatar for vbx_wx

[code] class A: def __init__(self): print 'A()' class B(A): def __init__(self): A.__init__(self) print 'B()' class C(B): def __init__(self): B.__init__(self) print 'C()' c = C() [/code] Cans omeone help me explaining what am I doing wrong here? I`m getting an error like: [code] B.__init__() TypeError: unbound method __init__() must be called …

Member Avatar for vbx_wx
0
129
Member Avatar for vbx_wx

[code] a = 10 def foo(x = a): print x a = 5 foo() [/code] Can someone explain why it prints 10 ?

Member Avatar for vbx_wx
0
96
Member Avatar for vbx_wx

I am getting this error when compiling in Eclipse Indigo in windows: [code] mingw32-make all 'Building file: ../src/testing.cpp' 'Invoking: GCC C++ Compiler' g++ -I"c:\MinGW\lib\gcc\mingw32\4.5.0\include\c++\tr1\" -O0 -g3 -Wall -c -fmessage-length=0 -MMD -MP -MF"src/testing.d" -MT"src/testing.d" -o "src/testing.o" "../src/testing.cpp" g++: no input files mingw32-make: *** [src/testing.o] Error 1 [/code] Can someone help me …

Member Avatar for vbx_wx
0
118
Member Avatar for MasterGberry

SO i have a function that returns a call to another function which returns a class, and I am getting a compiler error... AoE2Wide.cpp(179): error C3073: 'AoE2Wide::Patch' : ref class does not have a user-defined copy constructor [CODE]return FindPatchForExe(fileSize, exeMd5, exeFilename);[/CODE] Here is the definition i made for the class …

Member Avatar for MasterGberry
0
997
Member Avatar for vbx_wx

How can i get the content of a pop-up(that has no adress) from a specific website?

Member Avatar for group256
0
70
Member Avatar for vbx_wx

[code] 09:00 Johnny Bravo 10:25 Dexter laboratory 11:55 Cow & Chicken ..................... 18:10 I am weasel .................. [/code] Anyone knows a method to implement if i enter 10:30 to print whats on at that hour? (Cow & CHicken in my case) Thanks.

Member Avatar for richieking
0
82
Member Avatar for vbx_wx

Hello ,I want to find between what numbers of a list exist a specific number: For example if i enter 15,i should be between 13 and 21. [code] list = [1,5,9,11,13,21,27,29,32] for index in range(len(list)): if num > list[index] and num < list[index + 1]: ............................................... [/code] But with this …

Member Avatar for -ordi-
0
112
Member Avatar for vbx_wx

[code] text = "Some text here 09:00 - Movies 10:00 - Cartoons 11:00 SPorts .... 20:00 - News Another text here" [/code] I am trying to get only the parts with the time in front.Here is my code: [code] match = findall('\d\d:\d\d\s-\s\D+', text) [/code] My problem is that at the …

Member Avatar for TrustyTony
0
82
Member Avatar for vbx_wx

Hello,how can I make the 2 for`s to work at the same time to find out the diferences between A and B ? Thank you. [code] A = "gtggcaacgtgc" B = "gtagcagcgcgc" C = "gcggcacagggt" D = "gtgacaacgtgc" def cromo(a, b): inc = 0 for i in a: for j …

Member Avatar for woooee
0
204
Member Avatar for vbx_wx

[code] lis.py class mylist: def __init__(self,l): self.data = l; def __add__(self,l): self.data = self.data + l def __repr__(self): return self.data main.py from lis import* x = mylist([1,2,3]) x = x + [4,5] print x [/code] Why is it printing None? What do I did wrong,Thanks.

Member Avatar for vbx_wx
0
90
Member Avatar for vbx_wx

Anyone know why i get this error in eclipse when i compile any program: [code] error: to generate dependencies you must specify either -M or -MM [/code]

Member Avatar for vbx_wx
0
100
Member Avatar for vbx_wx

Hello,I have a problem in my prolog project about Train Routig: I have a few link: [code] link(milano,paris). link(milano,berlin). link(paris,budapest). link(berlin,madrid). ................. [/code] I need to make a route() predicate that takes a origin city and a destination,and a list path. The list path should contain what city traverse for …

0
57
Member Avatar for vbx_wx

[code] void* thread(void* arg) { std::cout << "Hi" << std::endl; return arg; } void clientFunc(TCPSocket* s) { pthread_t pid; pthread_create(&pid, NULL, &thread, NULL); pthread_join(pid, NULL); } int main() { ServerSocket s(4543); try { while(1) { clientFunc(s.accept()); } }catch(Error& err) { err.what(); } } [/code] My question is, how can I …

Member Avatar for daviddoria
0
105
Member Avatar for vbx_wx

[code] void* thread(void* sockArg) { TCPSocket* s = (TCPSocket*)sockArg; s->showUser(); return sockArg; } int main() { ServerSocket serversocket(4543); try { while(1) { TCPSocket* socket = serversocket.accept(); pthread_t pid; pthread_create(&pid, NULL, &thread, socket); pthread_join(pid, NULL); } }catch(Error& err) { err.what(); } } [/code] Why doesnt my s->showUser(); gets called ?

Member Avatar for mike_2000_17
0
85
Member Avatar for vbx_wx

I`m getting the following error in my code(line 65): [code] error: expected constructor, destructor, or type conversion before ‘*’ token [/code] [code] namespace SocketSpace { class Error { public: Error(const std::string& msg = 0) throw(); const char* what() throw(); ~Error() throw(); private: std::string message_m; }; class Socket { public: void …

Member Avatar for vbx_wx
0
141
Member Avatar for vbx_wx

Hello ,I want to implement a client server program,but I wish to use more OOP into the design(inheritance,virtual....),I only come up with this design and I nedd some pointers what can I do better,any sugestions will be welcome,Thanx [code] class TCPSocket { public: virtual void send(std::string buffer_m) throw(Error); virtual void …

Member Avatar for vbx_wx
0
126
Member Avatar for vbx_wx
Member Avatar for SgtMe
0
55