- Upvotes Received
- 3
- Posts with Upvotes
- 3
- Upvoting Members
- 3
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
- Interests
- Linux, Java, C++, Networking, fishing
19 Posted Topics
Re: 1. Norwegian: My main language 2. Swedish: Very similar to Norwegian, so most norwegians understand it. My mother is also Swedish, so I have grown up with it. 3. Danish: Don't really speak danish, but understand it. The Norwegian written language (bokmaal) is derived from the Danish language, as we … ![]() | |
Re: You could use an array, matrix (multidimensional array), Vector, List, ArrayList, Collection, Map... In my opinion, then simplest would probably be to use `List<InventoryItem> inventory = new ArrayList<>();` | |
Re: Have you tried opening your browser (on the computer with IP 192.168.1.4), typing in http://192.168.1.4 to see what happens? You should also try http://localhost. If the latter works, but not the 192.168.1.4 address, then the apache server most probably have been configured to listen only to the localhost interface. This … | |
Re: Try out [this toolkit](http://kb.sandisk.com/app/answers/detail/a_id/9328/~/ssd-toolkit-support-information), and see if you can get some SMART info from your disk. I've never experienced those kind of issues with any of my SSD disks, but I have with "normal" drives. So although I wouldn't exclude a virus being the issue, I would further explore disk-failure … | |
Re: Would this solve it? int min_year = 2012-122; int max_year = 2012+122; for (int age = 1; i <= 123; i++) { if ((i*i >= min_year) && (i*i <= max_year)) { int age = i; int year = i*i; int birth = (i*i)-i; System.out.println("A person borne in "+birth+" would be … | |
Re: Know this might be too late, but as I understand the task: for (int i = 1; i <= MAX; i++) { System.out.println("Age: " + i + " squared: " + i*i); } Would give you all neccessary values, like: Age : 44 squared = 1936 Age : 45 squared … | |
Re: @cgeier: I wrote this to test it out (as I was curious): public int countdown() { int i = Integer.MAX_VALUE; while (i > 2) { i -= 2; } return i; } It took less than a second to return 1... | |
Re: Is it Code::Blocks that gives you this error? When you're try to start it? Are you trying to compile it? Or are you trying to compile something from Code::Blocks? Think you need to provide some more info for anyone to help you. | |
Re: C# isn't my language, but why are you trying to count from 8.635.408 to 8.635.415? Why not just count from 0 to 7... Not sure how many bytes go into an integer in C#, or how you actually feed a hexadecimal value into it, but I'm gonna guess that you … | |
Re: 1. What are you trying to test with `if(1)`? An if could test two values (ex.) to see if they are equal (or not)... So `if(1)` won't do much for you (it will always be true). But something like `if (box[i])` will test your box if it contains true or … | |
Re: Best bet is to buy an Icy Box (or similar) for plugging a HD in an USB docking station. If your HD is not completely dead, you could be able to access your drive. Martin | |
Re: Define you Price variable like this instead: double price = 0.0; The problem is that `double price;` sets the value to null, or at the very least; your IDE thinks it does. By setting a default value manually, you'll prevent the warning from being displayed. I should have read all … | |
Re: But you can see BIOS info when booting? So monitor or GPU is not fried? What OS are you running? Linux? Windows? Are you using a proper HDMI cable? | |
Re: The problem with this request is the main problem with Linux in general (in my opinion); too many standards. I.e. Firefox handles protocols internally (from what I understand), so you need to setup a magnet protocol handler there. I don't know how, a I mainly use Chromium. Many application (like … | |
Re: I'm always storing time as a String in text files, here's my static method for getting it: public static String calcDate(long millisecs) { // long millisecs = System.currentTimeMillis(); SimpleDateFormat date_format = new SimpleDateFormat("yyyy.MM.dd HH:mm:ss"); Date resultdate = new Date(millisecs); return date_format.format(resultdate); } Hope this gives you an idea of how … | |
Re: Looks to me as if it should work if you start the Receiver first like this: java -jar Example1Receiver.jar 4444 Then you should start the client (use the IP of the server instead of 192.168.0.2): java -jar Example1Sender.jar 192.168.0.2 4444 "Hello World" (Could be you have to type "192.168.0.2"). Martin | |
Re: Edit: Oops, this was already solved it seems... Try this: for file in ( ls *.fa ) do newfile=$(echo $file | sed 's/ehed/ehedp/') ...etc... done Could work ;) Martin | |
Re: As rubberman indicated, the default Gentoo operation is to NOT mount the /boot partition (if it is a separate partition). You can choose to change this in /etc/fstab, or you can mount it manually when you need to. | |
Re: I believe you don't have to make it browsable=no, as Windows shares with $-signs at the end are not browsable by windows, but you can still find them with other OS's. I made a share like //server/folder$ on my Samba installation, which I was unable to see from windows, but … |
The End.