Jump to content

albertlee

Senior Members
  • Posts

    1259
  • Joined

  • Last visited

Everything posted by albertlee

  1. by the way, tell you what, I have just installed another Windows in another parition, and use that to look into my original disk. It is firstly happy to see my files, but however, most anoyingly, some of my files, when I copy them or move them to my external harddrive, it says, a dialogue apears, saying, "access denied", and telling maybe it is the cause of that the file is currently in use, but aparently not. Any help on this?
  2. thanks pangloss. is there tool in the accensories of Windows that can scan the disk and find the bad sector, then map it??
  3. I have use microsoft scandisk, and it shows that there is an data error at cluster 1179648. any idea?
  4. to klaynos, I am not able to boot into my laptop under safe mode, because the windows xp logo does not even apear. The only thing I see, after the logo of my laptop, which is independent to Windows, is played, is a black screen with an underscore flashing at the left top corner. I have left the flashing underscore as long as any one can imagine. "Have you tried booting without the mouse pluged in?" Yes, more than 1 time. I didnot install any software or hardware before the blue screen of error message, and the only plugged in usb device is my mouse. Still any help?? thanks gratefully/
  5. Unfortunately, I didnot note down the giberish line. the 1st giberish line looks something like %#$@%#%#%#%#$, even characters that cannot be found on a keyboard. the 2nd giberish line is somehow understandable, something like: Stop: 0x452904..... Any way, I guess I will never see that message again. 5614, for your solution of reinstalling Windows, it is more tedious in my case. I have a reinstalled CD that is bound to the laptop. You know what i mean?? In addition to my previous post, as I observed more closely, when I start the laptop, and when it first "arrives" to a screen with underscore flashing on the left-top corner, the laptop restarts again, and until to the same screen, the underscore flashes continuously, ie, the laptop does not restart again in the second time. So, more explanation to the black screen with an underscore flashing constantly?? please help thanks
  6. A problem has been detected and windows has been shut down to prvent damage to your computer. some giberish I dont understand in this line If this is the first time you've seen this stop error screen, restart your computer. If this screen appear again, follow these steps: check to make sure any new hardware software is properly instealled. If this is a new installation, ask your hardware or software manufacturer for any windows updates you might need. If problem continue, disable or remove any newly instealled hardware or software Disable BIOS Memory option s such as caching or shadowing. If you need to use safe mode to remove or disable components, restart your computer, press F8 to select Advanced startup options, and then select safe mode. some giberish I dont understand in this line Here is the story. Today, When I attept to shut down my laptop, a blue screen appears with the above error message. Since it is my 1st time experience, I just restart the computer. Thereby, the catastrophe occurs. I cannot access to my Windows Xp SP2 Home Edition any more. The screen is completely black with an underscore flashing persistently on and off on the left, top of the screen. Now addition information relative to this problem: I have reinstalled the OS couple of months ago due to a failure of the prior OS. Since then, the most problematic hardware is my USB mouse. Note that this problem regarding to my USB mouse never happen before I reinstalled the OS. It is usable, however, sometimes, quite frequently, it does not respond, you know, the cursor does not move, and I have to wait for a while or replug the mouse in order to make it work. Just recently before I see the blue screen, my mouse stops responding as usual (in such case, I always use the touchpad alternatively), but a message, appears from the status panel on the toolbar (you know, the toolbar has a "start" on its left), saying it cannot recognise all my USB sockets. Can any one help??? apreciate ps, I am using my school's desktop to respond, please help imidiately if you see this thread and know how, because I am always beside the desktop. thanks again
  7. As entitled, do you people know where I can find sample problems from the Google Code Jam??? Thanks
  8. In Internet, the world of freedom, errr, have you heard of something called p2p?? Use your imagination!
  9. http://www.google.com/codejam05 The above is a link to an online programming competition official site. See if you out here can actually get anything out of it. basically the programming assessing criteron is algorithm. in addition to that, does any one know any website that programmers meet, forums and which provide(s) persistently uptodate resources in account of algorithm? you know, I am still learning Java, but I just want to be, one day, capable of joining a competition like that....
  10. oops...sorry. I just presume every one here is male until prooved wrong
  11. It looks pretty good, even simpler than Gel. I've seen the program description and related etc from the official site. I would aslo recommand drjava, despite I have'nt used it. how about the performance? It is java-based, and it probably needs JVM, and maybe it is slow?
  12. I can think of that Sarahisme is a beginner himself.
  13. what sort of event causes the handleEvent to call action(). in addition to that, is it true that all events in model ver.1.0 come from Event class type directly?? no subclass type, right? ps, The above questions relate to the EventHandlingModel version 1.0, ie the old model. thanks
  14. I am using Gel. It is free and easy to use.
  15. I am now learning java.net package, but my insufficient knowledge on WWW, http, html standard, etc etc gives me a hard time.... Do you people any book, any site, any material that is useful and helpful that can help me to know enough to learn java.net efficiently?? thanks alot
  16. I dont really understand what does the poem mean.....
  17. well, I am no java scripting expert, but since I am a lower intermediate java programmer, I could briefly see how the JS works. Any way, I guess I won't get much out of it at all, if all I want to know is the answer, so dont bother to advance to the next level. to JPQuiceno, I have seen that one by Raymond, and since then I devote my free time learning Java. Do you think you are previliged enough to entitle yourself a "hacker"?? (just wanna ask after seeing your avatar)
  18. I haven't learned those weird notations. BUTBUTBUT, the formula is more or less called "Geometric Progression" Google for that word, and you will help yourself out.
  19. http://www.dievo.org:82/apprentice/level5aaa/indexaa.php?password=eagle above is where I got to. I've tried the right password (hint, download the page, and view it. The code is written in JavaScript), but I dont know why it does not work. Any one competent enough plz try it first and tell me whether or not you are able to promote your level. Thanks for help.
  20. CubbyHole class public class CubbyHole { Object item; public synchronized Object get() throws InterruptedException { while(item == null) wait(); Object i = item; item = null; notifyAll(); return i; } public synchronized void put(Object i) throws InterruptedException { while(item != null) wait(); item = i; notifyAll(); } } and TestCubbyHole public class TestCubbyHole { public static void main(String[] args) { Thread mainThread = Thread.currentThread(); CubbyHole c = new CubbyHole(); new CubbyWatcher(1, c); new CubbyWatcher(2, c); new CubbyWatcher(3, c); new CubbyWatcher(4, c); new CubbyWatcher(5, c); new CubbyWatcher(6, c); for(int ii=0 ; ii<args.length ; ii++) { new CubbyFiller(args[ii], c); } try { System.in.read(); } catch (java.io.IOException ioe) { } } static class CubbyWatcher implements Runnable { int id; CubbyHole theCubbyHole; public CubbyWatcher(int id, CubbyHole c) { this.id = id; theCubbyHole = c; System.out.println("CubbyWatcher"); Thread t = new Thread(this); t.setDaemon(true); t.start(); } public void run() { while(true) { try { Object o = theCubbyHole.get(); System.out.println("Watcher #" + id + " got: " + o); } catch (InterruptedException ie) { } } } } static class CubbyFiller implements Runnable { Object item; CubbyHole theCubbyHole; public CubbyFiller(Object i, CubbyHole c) { item = i; theCubbyHole = c; System.out.println("CubbyFiller" + ", item = " + item); Thread t = new Thread(this); t.setDaemon(true); t.start(); } public void run() { Thread me = Thread.currentThread(); [b][i]//int waitTime = (int)(Math.random() * 1000);[/i][/b] try { [b][i]//me.sleep(waitTime);[/b][/i] theCubbyHole.put(item); } catch (InterruptedException ie) { } } } } In TestCubbyHole's CubbyFiller's run() method, if let the me.sleep uncommented, the output will be something like parameter: aaa bbb ccc ddd eee CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyFiller, item = aaa CubbyFiller, item = bbb CubbyFiller, item = ccc CubbyFiller, item = ddd CubbyFiller, item = eee Watcher #1 got: ddd Watcher #2 got: ccc Watcher #3 got: bbb Watcher #4 got: aaa Watcher #5 got: eee where the last 4 lines (Watcher #s) are quite random. I understand that. However, if with the code lines commented, I expect the out put to be: CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyFiller, item = aaa CubbyFiller, item = bbb CubbyFiller, item = ccc CubbyFiller, item = ddd CubbyFiller, item = eee Watcher #1 got: aaa Watcher #2 got: bbb Watcher #3 got: ccc Watcher #4 got: ddd Watcher #5 got: eee but however in fact it is: CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyWatcher CubbyFiller, item = aaa CubbyFiller, item = bbb CubbyFiller, item = ccc Watcher #1 got: aaa CubbyFiller, item = ddd CubbyFiller, item = eee Watcher #2 got: bbb Watcher #3 got: ccc Watcher #4 got: ddd Watcher #5 got: eee Can any one explain why?? thanks">
  21. After finish the Hook, where can we post the proof?? I cant find the wargame-dialog.
  22. How do you become a member of dievo?? I can't sign up. the login button just restart the sign up page. any help?
  23. Situation 1) setPriority(int adsa) public class ThreadPrioDemo1 { static class Demo1 implements Runnable{ public void run(){ //blablabla} } public static void main(String[] asdf){ Runnable r = new Demo1(); Thread myThread = new Thread(r); Thread mainT = Thread.currentThread(); //mainT's priority is 5, so as myThread. mainT.setPriority(10); //mainT's priority to MAX, this simultaneously changes myThread to 10 as well. //or myThread.setPriority(10); //myThread priority to MAX, however, this does not change mainT to 10 } } Question 1), why if main Thread is set to a certain priority, the thread it creates automatically change its priority to the same as well, but the reverse is not?? Situation 2) this is slightly more complex public class ImplementingRunnable { public static void main(String[] args) { Thread mainT = Thread.currentThread(); for(int ii=0 ; ii<args.length ; ii++) { Runnable r = new MyRunnable(args[ii]); Thread t = new Thread(r); t.setDaemon(true); //t.setPriority(Thread.MAX_PRIORITY); t.start(); } } } and public class MyRunnable implements Runnable { public void test(){ System.out.println("test"); } String message; public MyRunnable(String msg) { message = msg; } public void run() { Thread me = Thread.currentThread(); try { for(int ii=0 ; ii><10 ; ii++) { //case (1) me.setPriority(Thread.MIN_PRIORITY); me.sleep(3); System.out.println(message); //case (2) me.setPriority(Thread.MIN_PRIORITY); } } catch (InterruptedException ie) { } } } In class ImplementingRunnable, how is the commented code line related or counter-related with the commented case 1 code line in MyRunnable?? Please help thanks
  24. Well, why I got the rumor that the term hiding is used for static method, and overriding is used for instance method?? any way, thanks
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.