- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 4
- Posts with Upvotes
- 4
- Upvoting Members
- 4
- Downvotes Received
- 5
- Posts with Downvotes
- 3
- Downvoting Members
- 5
62 Posted Topics
Re: [QUOTE=javaAddict;1062535]I agree. I prefer to write my own gui. Surely I also use a Gui Builder but just to quickly declare and place the elements. But most of the times I do them on my own. It is hard to use a gui builder to create dynamically a list of … | |
Re: Be wary with the things you dream about because their consequences can easily be your nightmares! If this was a miracle of God, then what can Evil have up his sleeve?! | |
Re: [URL="http://en.wikipedia.org/wiki/Distributed_hash_table"]DHT[/URL] Well, the main idea is that there is a data with an unique natural key, and then everybody writes some information about it which is stored on their own comp. Then the programs connect like torrent clients, and everybody can query the datas. For example the key can be … | |
It's ugly: https://www.sugarsync.com/piv/D435904_81_8707554623 My guess is the monitor cable. But help is welcome: I don't wana take it apart. This is my first mac, never fixed any before. So I would thankful for a software problem. ps.: Due to dammed design "flaws", I cannot just take the monitor and plug … | |
Re: There is also Hackintosh, an OsX which you can install on a "non-Apple hardware". I was trying it when lion came out, but Snow Leo had no stable drivers (kexts) for my x64 PC, and Lion was still unusable. Should retry soon... | |
Re: Adobe has two uses: - Unaccessible homepage content for cheap ppl that cannot use CSS3 and JS: If you think accessibility is not an issue for you, just try using ctrl+f search. It is! What a text to speech engine cannot read, you cannot search. - Reatarded programing language for … | |
Re: You can check the apple store for first hand buy, but that only applyes in the USA. In case you cannot buy it in the USA, or have sby do it for you, prices will differ greatly. There are Apple retailers in almost every country with different but always higher … | |
Okey, so I'm new with mac, this must be an easy question: So far I've learned to do autorun, and make it hidden in sys prefs -> account -> Login items. My problem is that this doesn't work with the dashboard. I've found the dashboard.app, added it, checked the hidden … | |
Hi! I'm using Snow Leo with iMac, and it's continuously getting slower and slower to startup. It's 35 sec (without weird HDD) at fresh install or after clearing PRAM. After 3 days now it's 50-60 sec. Last time before I've found out the PRAM trick, it was 90-120 sec. Also … | |
I have this mouse: [url]http://www.pointofview-online.com/showroom.php?shop_mode=product_detail&product_id=45[/url] And I can't find any driver. But my system properly handles it as an USB HID compatible mouse, I think this is why there is no driver. I just can't configure the 2 additional buttons. So I think I would need an universal USB HID … | |
This prints NULL: [CODE=Java]String sss = System.getSecurityManager() == null ? "NULL" : System.getSecurityManager().getClass().getName(); System.out.println(sss);[/CODE] And this throws exception: [CODE]ServerSocket serversocket = new ServerSocket(80);[/CODE] This one: [CODE]Exception in thread "main" java.lang.Error: java.net.BindException: Permission denied at httpserver.HTTPServer.main(HTTPServer.java:68) Caused by: java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at … | |
It's a common problem, there are a lot of google hits, but I could found no working solution. When I leave my computer on and don't use it, and I come back, first only the cursor works, and if I right click, that freezes too. After 1-5 min it recovers … | |
So I get the error CPU has been disabled by guest os. Power off or restart. But if I power off, it shuts down. I wana run it. Then error again... I tryed: - Disabled all unnecessary hardware. - Turned off USB Legacy support in BIOS. - Found no explicit … | |
Hi! I have been creating animated gifs with flash till now, but since here is HTML5, I don't need flash anymore. But any other program I try (yes, I tried google) want to make me to draw every damn frame one by one, and can't do a simple movement or … | |
So I have a component that renders very slowly. The problem is that I can only render inside the event handling thready, which shouldn't be freezed. Long ago in pascal/assembly I used backbuffer and page flipping. I've read that Java supports double buffering, but no info about thread safety. So … | |
Re: Note: Windows will start the file while opening the folder and not instead, so your files won't be protected. On top of this, [COLOR="Red"]anybody can open that folder[/COLOR] with a 3rd party program or with disabled autorun, so it's not real security. | |
Re: I can't help with the main problem, but a good workaround can be to use force shutdown: [CODE]shutdown -f -s -t 01[/CODE] You can type it into any run dialog, into any command line, or you can make a bat file on the desktop. | |
Original question:[url]http://forums.sun.com/thread.jspa?threadID=5323307[/url] [quote]So I would like to include a bean into the same project (as a separated library of course) that uses it, so the project would be self containing, and the bean's code would stay in syncron with the program's one, even if I move it to another computer. … | |
Re: Winamp does aggressively force associations, so it sets the association programatically every time it can. [B]You don't have a problem with windows, but you have with winamp itself![/B] Solutions: - Deselect .avi in [I]winamp's options[/I], so it won't set it. - Deselect automatic association whatever in [I]winamp's options[/I], so you … | |
Ok, so I want to port my code to windows mobile, and I'm looking for a tutorial. I would like compatibility with WM5, and WM6 is a must. So I'll use the embedded whatever. I've got Visual Studio 2k8 and the 3 addon required to do the job. I've also … | |
Re: - 2 integers in 1 line: There must be separator char, so use split()! - A simple for loop... - Condition inside the for loop for even number: mod2=0; &000000001b=0... - Sun is with capital, I guess you want the sum: init a variable then inside the deepest condition where … | |
I have a database application in Java. They want to access the data from primarily Excel2007 and secondarily Visual basic. I need some advice about with what library could I easily add this functionality. I've tried Simple OLE DB Provider with some JNI, but it's unstable and I'm... grrr. So … | |
Re: Try opening task manager with ctrl+alt+del, close all explorer.exe and when there are no more, use the "new task (run)" from the task manager's menu, and type in explorer. Haven't tried this on Vista, but it helped me out a lot of times on XP and 7 after not working … | |
Hi! I'm reading COM port from under java. Like: [ICODE]new RandomAccessFile("COM1", "rw");[/ICODE] I know, it looks dumb, I would be more happy with ActiveX too... But I need the ability to adapt to different kind of systems in the future, and COM can be read as file on almost every … | |
[CODE=JAVA] setFoo(getFoo() + 1); ... private int foo; public synchronized int getFoo() { return foo; } public synchronized void setFoo(int f) { foo = f; } [/CODE] Easy code for a race condition. Easy solution: [CODE=JAVA] synchronize(o){ o.setFoo(o.getFoo() + 1); } ... private int foo; public synchronized int getFoo() { … | |
Re: [quote]a store can have many gaming machines of the same type[/quote] Then it's not strictly a many-to-many relationship, but a class-instance: Every gaming machine has a type and a container. Here is an example for many-to-many: [url]http://en.wikipedia.org/wiki/Many-to-many_(data_model[/url]) Notice that if you take an instance of a book, it inherits it's … | |
Re: [url]http://en.wikipedia.org/wiki/Brute-force_search[/url] [url]http://en.wikipedia.org/wiki/Backtracking[/url] [url]http://en.wikipedia.org/wiki/Dynamic_programming[/url] So to start with bruteforce, you have to test each combination of the dices if it sums to the number you need. Just watch out for combinations and variations, to answer the correct question you've been asked to... | |
So my grandma wants to use computer. She wants just basic things, like playing dvd and cd, or musics and movies from the harddrive, maybe explore what's on it. I need a program which allows to do this simply, and mainly that is protected from erroneous input. I think something … | |
Re: First idea is to not use microsoft access! Apache Derby or SQLite is much better and free. Just one example, access doesn't even support EXPLAIN. So: - Why is it going slow? - You probably wasn't following the microsoft rules, and screwed up the design! - I know, but where? … | |
Re: You just have to know the name of what you are looking for: [url]http://www.google.com/#q=html+parse+regex[/url] | |
I have the following scenario: There are several trips, each with several people, and each people has several data, like... idk., height, weight, hair color, and of course passport number, name... So the point is to retrieve these from several sources, store them, then make statistics. I'm only interested in … | |
Hi! I have a windows mobile 5 device, and I would like to make some programs for it. I need a free development environment (compiler and librarys) that runs on winxp. It would be a very big help if I could use my NetBeans which I have experience with. It … | |
Re: [B]When you pass a string to .split instead of a regex, it uses that string to create a regex, instead of using the original string object you've passed.[/B] This is a bug I make every possible time. :S | |
Well, so I have a notebook without CD/DVD drive, and with a special WinXP install CD. I have to reinstall it, and I don't want to buy an external drive. But I have an USB cross cable. So If I plug in the other end of the cable into my … | |
Re: [B]This is a sollution for the 2nd question where the [I]static[/I] has been taken out:[/B] [CODE="JAVA"] public class Test { Test t = new Test(); public static void main(String[] args) { try { Test a = new Test(); System.out.println("meowmeow"); System.out.println(a.t); } catch (Throwable e) { System.out.println("Error:"); System.out.println(e.getClass()); System.out.println(e.getMessage()); System.out.println(e.getCause()); e.printStackTrace(); … | |
Re: Just download the one with NetBeans, then you'll get a free IDE ready to use out of the box. [URL="http://java.sun.com/javase/downloads/index.jsp"]http://java.sun.com/javase/downloads/index.jsp[/URL] Or do it the hard way: [URL="http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html"]http://java.sun.com/javase/6/webnotes/install/jdk/install-windows.html[/URL] | |
Re: Rewriting with if: [code=java] if (i == 0) return strNum; else return strNum.substring(i); [/code] But the substring with the 0 parameter already returns the whole string unchanged, so it's really: [code=java] return strNum.substring(i); [/code] And I think it's wiser to leave for the programmer that wrote the substring function to … | |
Well, so if I use static initialization blocks to access another static data inside another class: [code=java] public class StaticTestA { public static Queue queue = new LinkedList(); static { System.out.println("A start"); StaticTestC.queue.add("A"); StaticTestA.queue.add("A"); StaticTestB.queue.add("A"); System.out.println("A stop"); } } public class StaticTestB { public static Queue queue = new LinkedList(); … | |
Hi! I would like to do something like this: [url]http://www.adp-gmbh.ch/ora/explainplan.html[/url] with an .mdb file. Thanks! | |
Re: You suck because you've posted here to ask why! It sucks! Nobody asks "Why do I suck?"! Nobody who doesn't suck enough to do so... | |
Re: [QUOTE=GökhanBarış - Corrected;917178][CODE] for(int i = 1; i<=50; i++) { if( i%10 [COLOR="Red"]==[/COLOR] 0 ) { System.out.println(MyString.charAt(i-1)); } } [/CODE][/QUOTE] Those double equal stuffs made me a big headache when I switched to java too. Also you should verify if you can make an inner and outer loop by 10 … | |
Re: [url]http://java.sun.com/docs/books/tutorial/essential/concurrency/interrupt.html[/url] [quote=Link above]A thread sends an interrupt by invoking interrupt on the Thread object for the thread to be interrupted. For the interrupt mechanism to work correctly, the interrupted thread must support its own interruption. [/quote] | |
Re: [QUOTE=loozax;918903]Write a JAVA program that will generate/output the following numbers. 1, 2, 4, 7, 11, 16, 32, 39, 47, 56, 66 (using looping)[/QUOTE] Typo: 1, 2, 4, 7, 11, 16, 22, 29, 37, 46, 56 Much easier like this lol! :D | |
![]() | Re: Looks like there are a lot of things wrong. Here is my contribution: Base: (formated with NetBeans) [code=java] void printAvailableBooks() { //supposed take a book out of the list if borrowed for (int i = 0; i < numBooks; i++) { if (i < 0) { System.out.println("There are no books … |
Re: Here is the Java tutorials: [url]http://java.sun.com/docs/books/tutorial/[/url] (And in Java's case the official is the best one of all!) And here is the 2D tutorial: [url]http://java.sun.com/docs/books/tutorial/2d/index.html[/url] To draw graphs, you can do 2 things: - Search a 3rd party (or maybe included official) component that can do it for you. This … | |
My program is using Access mdb database through ADO. I have Access installed here, but there is no Access on that machine which has the database. There is a query, which takes much more time than it should... My question is: - How can I profile that query (under Access … | |
Re: It can also be just a motherboard malfunction. 2-3 years ago I've seen a lot of computers with this problem. But thos MBs had originally came with this malfunction. | |
Re: Hmm, that red line ends at an unexpected place. First Delphi IDE has a habit underlining the wrong line of code. Watch out! Second it's only the IDE, so if it runs, then it's correct, and you may just have to restart the IDE. :D Of course, red line means … | |
Re: [b][U][URL="http://delphi.about.com/od/beginners/l/blrtlcopy.htm"]Substring (Link)[/URL] [URL="http://delphi.about.com/od/beginners/l/blrtlstringhand.htm"]String handling routines (Link)[/URL][/U][/b] | |
Re: The correct way for this would be to make your dialog showed modally which would implicitly prevent other forms to be modified. And it would also prevent them to hide your form behind themselves. And also there is that cool pinging sound... :) There was a lot of time I … |
The End.