I understand. It's just about "accepting this fact" and not sending adds as news.
Ashish Tyagi 40
Posts
-
Looks like almost every "Daily News" from code project is just advertisement. @ Code project please send advertisement in a SEPARATE email !! -
Looks like almost every "Daily News" from code project is just advertisement. @ Code project please send advertisement in a SEPARATE email !!Why your email is always full of Microsoft? Aug 5th, 4 out of 5 "Industry News" are of Microsoft.[^] I don't need to provide more data because readers (who didn't routed your emails to junk yet) already know that. Infoworld.com, full of paid news (advertisement) but why you keep forwarding there adds? From today's "Daily News" [^] perforce helix better then Git by "product marketing manager at Perforce Software"[^] Readers.. what do you suggest?
-
Application crash when reading file from mapped network drive is discoonectedIf you share which API you are using for file I/O then you'd get answer more accurately. Did you used std::fstream or some other API?
-
Pop Quiz Hot ShotNice one :thumbsup:, but billing of 40 hours will not be sufficient if it break any existing (working) things :)
-
Pop Quiz Hot ShotB) Refuse to do it. I'll tell them, its not logical and why its not logical And will ask them why they need it and suggest alternative solution if possible.
-
They just keep on tryingtoo funny :-)
-
Git!"someone would leave a file locked at the end of the day and was nowhere to be found"
Same happened in my org, someone left entire directory (containing a big project) locked (reserved checked-out) in ClearCase on his last working day and we had to copy the dir with dir_new :-) I really hate ClearCase, when it take 5 seconds just to show the diff. Git is fast.
-
Application WatchdogDeveloping whatch dog on windows is very easy, all you need to create a named mutex from the process (program) needed to moniter, and from your moniter process, wait for that mutex handle to be closed. If it get closed than restart your program. If you are a Linux user than crontab is your friend, use crontab instead of develop new watchdog so that you can spent time to find out why you program is crashing. On windows you can use cronw. Good Luck.
-
AsyncIO C++You can use bosst asio. And as you are looking to retrive any collection object, I would propose you to use boost serialization, it is more easier to code and design these kind of requirement.
-
ISP hackedWhat the **** They Saved password in plain test????????????
-
Problem in Multithreading ,,....To ensure that a thread (referenced by some reference say threadRef) is finished, then you join() on that reference. like threadRef.join() if that thread is finished, then join() returned immediately otherwise join() will blocked until that thread get finished. For example if you create three thread (a, b, c) for doing three different task A, B, C, from your main thread, but you need some initialization processing (which must be executed before start-up of a, b, c) and shutdown processing (which must be executed after finishing of a, b, c) then you may code like this // in main() System.out.println("System started"); initialization(); // a, b, c are not running yet. System.out.println("initialization complete "); Thread a = new Thread(new Task_A_RunnableClass()); Thread b = new Thread(new Task_B_RunnableClass()); Thread c = new Thread(new Task_C_RunnableClass()); a.start(); System.out.println("Thread "a" started "); b.start(); System.out.println("Thread "b" started "); c.start(); System.out.println("Thread "c" started "); //Now wait for all thread to finished. a.join(); System.out.println("Thread "a" finiished "); b.join(); System.out.println("Thread "b" finiished "); c.join(); System.out.println("Thread "c" finiished "); shutdown(); // a, b, c are finished now. System.out.println("System shutdown..... ");
-
static keyword problem.....Actually non-static members are accessed via an object. An static member function can access non-static member of it's class also but through an oject... like--
class TestClass{ int i_m_belongs_to_an_object_of_TestClass; // non-static data member static int i_m_belongs_to_TestClass; // static data member public static void function(){ // i_m_belongs_to_an_object_of_TestClass = 0; // wont compile i_m_belongs_to_TestClass = 0; TestClass obj = new TestClass(); obj.i_m_belongs_to_an_object_of_TestClass = 0; // will compiled but accessed through object OtherClass objOther = new OtherClass(); objOther.i_m_belongs_to_an_object_of_OtherClass = 0; // will compiled but accessed through object int someInt = OtherClass.i_m_belongs_to_OtherClass; // accessed through Class name can also be accessed by an object } } class OtherClass { int i_m_belongs_to_an_object_of_OtherClass; // non-static data member static int i_m_belongs_to_OtherClass; // static data member }code> Only one copy is allocated for static data members, one copy per object for non-static data members
-
Polymorphism problem in java..Hello friend... Just add this line in main()
System.out.println("aRef's type is " + aRef.getClass().toString());
and output for this line must me :aRef's type is b
when you call aRef.show() then first this call must be resolved by class of aRef's object if fuction show() not found then jvm try to resolved it from super class.