- Strength to Increase Rep
- +8
- Strength to Decrease Rep
- -2
- Upvotes Received
- 75
- Posts with Upvotes
- 53
- Upvoting Members
- 29
- Downvotes Received
- 33
- Posts with Downvotes
- 31
- Downvoting Members
- 4
enthusiast programmer.
- Interests
- java, datastructures.
- PC Specs
- win8 , 500gb hdd , 4gb 1333Mhz ddr3 , radeon 7670m
184 Posted Topics
| |
![]() | Re: i think i have an idea of whats happening , but when you say awkward output , posting the awkwardness here would help tame it :) note : scanf() to read a character is a very bad idea. read more from [here](http://www.gidnetwork.com/b-59.html) |
Re: Although it has been sometime since i last programmed in matlab , if i recollect properly , matlab code , in essence is a lot like C.. ie , procedural. java is OO . also , functions built into matlab , in many cases can be quite complicated , and … | |
Re: It's funny to see ASAP coming from someone apart from one's stingy boss :D | |
The last time a major change happened, i remember in a community chat few people (including me) were saying that the new changes looked a bit girly :P That won't work this time though. This is so totally different from vintage Daniweb. Also, i see some stuff probably not working … | |
Re: Getting a private auto-message for an sponsored post, and coming here to find homework.. just screwed my mood. | |
My Program is about Directed Graphs. It reads a list of edges like : `25 589` , and puts 589 into the adjacency list (a linked list) of 25. My input file has about 5 Million such `v w` edges, with about 800K nodes/vertices, for each of which there will … | |
I work in it now, its kinda hard to work on , given its wanton use of GOTO , its difference from everything i know (save for assembly perhaps , but i only remember less than 10 commands there anyways :P ) , and the fact the its entire online … | |
The below post is just something i thought of contributing here for young( or old ) members starting out in C. In (effectively) 3 lines of code , i hope to give an intro about pointer arithmetic and how endian-ness in windows affects the output. #include<stdio.h> int main(void){ int a … | |
chrome , firefox.. these are great browsers , and even if i write utter crappy html code, it still makes sense out of it , and tries to display it the way a proper code would have made it display. thats great stuff unless i want to know/see the errors … | |
Re: if you had looked at what you didnt want to see, you might have felt less of what you didnt want to feel. | |
My assignment says : Write a program to perform following stack operations : Create a stack with item code and quantity Itemcode Quantity 111 450 112 0 113 487 114 101 115 500 116 0 117 359 and then Delete the items having quantity zero and update the stack. My … ![]() | |
Re: i have about 18 years of expirience banging tables :P only reason i dont have a drumkit at home is because of how quiet my neighborhood is , and how much the neighbors would like to keep it that way. I played guitar , until the neck bent and now … ![]() | |
Re: i'm currently developing a belly on a skinny body. i like to run when the weather is nice and i can get up early in the morning. btw , congratz on getting resurrected ( i think i made a typo ... ) | |
If we have something in a `div` block , how come it can flow out of the `div` block as if nothing's even there ? For example , here : <!DOCTYPE html> <html> <head> <link type="text/css" rel="stylesheet" href="box.css"/> <title>Result</title> </head> <body> <div> <p>one</p> <p>two</p> <p>one</p> <p>two</p> <p>one</p> <p>two</p> </div> </body> … | |
Re: create an inner list `Node` , which will have 3 feilds : `prev` ,`next` and `data` . If your creating a singly linked list , you can do with only data and `next`. `next` and/or previous will refer/point to the next/prev node in the list. | |
Re: its a lot of code to go through , lets see.. What if you put the elements in a sorted manner inside the BST ? does that comply with your assignment rules ? if yes , you can use buffered reader , read a line , .split() it , sort … | |
I saw a tutorial from a site where it showed the use of `ArrayBlockingQueue` as a thread-safe concurrent data-structure . Just for learning purposes , i tried to build something similar using synchronized and wait-notify methods in java. I'm hoping someone could guide me to some improvements and point out … | |
Remember High-school maths ? there was this greek letter Sigma ( if i remember correctly ) , followed by an algebraic function like `f(n)` , where `n = a to b` would be short-formed as `a` below the `sigma` , and `b` sitting on top of it. I want to … | |
viewed <M/>'s profile ... dude has 105 endorsements ! Congratulations :D | |
Re: your text file looks pretty ordered to me. The only place where you might need scanner for input parsing purposes is when there may be unexpected lines in-between two valid lines , or a valid line has garbage in between two valid key words. split() works there too , but … | |
I think i have understood the basic locks , synchronized statements and methods etc etc . I would like to actually program something that used all this. Something that is prone to breaking if one is not careful , also would love if there is swing involved ( i read … | |
Re: i never used JUint , i use eclipse debugger for most cases. You can also just have assert() statements at strategic locations in your code , and enable assertion when you want to test it. | |
Re: why say deep ? it looks like plain simple copy. However , you might want to add checks for the size of other , instead of hardcoding it to 8. | |
So anyone here who loves sublime text ? I do , and i use it on windows as my sql editor and compiler. (i have a batch set up which complies the code on mysql , and the output is tee'd back to another open text file) | |
Re: Okay , so for life on the heap , what i guess this means is that Your DLL is a datastructure that hold elements of type SLL ? Perhaps that makes it easier to understand whats going on and how things can be improved .. | |
Re: > thanks, but I am not looking for career advice from you. 1. the statement was uncalled for. because 2. your not even sure which one you want - run or review. | |
Re: any language is easy with enough time and dedication. anyways , I'm not sure if this is a question , perhaps you posted in the wrong place ? | |
I'm a bit confused about the use of "for" in the above statement.( i read the line from the [oracle tutorials](http://docs.oracle.com/javase/tutorial/essential/concurrency/syncmeth.html) ) I suppose a thread has its run() method , inside which there is some code. That code might call a method **of** an object... and by this point … | |
Re: The question you *should* be asking is that why does the dog-move() method gets called even when i'm calling the move on an animal object. Java rule : methods that can be called depend on the reference type and not the object type , so whats going on here ? | |
Re: if stack is empty , you should return some kind of error or throw some exceptions imo. revertStack.push(pop()); i dont know what those are , but assuming they do the work they are supposed to , AND its an **in-place** operation , you are returning a reversed version of stack … | |
Re: apart from the typo's in code , which you can correcteasily by pasting it into an IDE , look at your last for() loop for (i = 0; i < rowa; i++) { for (j = 0; j < colb; j++) { JOptionPane.showMessageDialog(null, " the resultant matrix is" + mul[i][j] … | |
Re: final int SIZE=this.size(); can you explain this part a little ? | |
Re: That's a really big post ! anyway , a thing i'd like to ask for clariication : >a) Write code that transforms the string array provided above into a 2 dimensional character matrix, (e.g., char[][] charMatrix;). >b) Once in the two dimensional array form, use insertion sort to sort the … | |
Re: the OP asks something i have pondered over myself a number of times , but didnt ask anywhere feeling i might be tagged as vague and asking something without any objective. but regarding php , i would like to know how node.js stands against it. also, when it is said … | |
I like watching stuff like google tech-talks , josh bloch seminars/talks etc for Java. Can somebody provide something similar in nature for C# ? | |
Re: This thread is a bit old , but i'm having the same questions (under different circumstances) as the OP. Googling for "CLR versions for Mac and Linux" led me to mono and wine ( can i say respectively here ? ). Now in one [stackoverflow thread](http://stackoverflow.com/questions/216841/how-does-mono-work) , i read that … | |
Re: google up "*sieve of eratosthenes*" . the algorithm results in a small but powerful code for finding primes. | |
Re: [Algorithms (4th Edition)](http://www.amazon.com/Algorithms-4th-Edition-Robert-Sedgewick/dp/032157351X) | |
Re: you can figure out the first word relatively easily using a "compare character read with ascii value of `space` " strategy. The last word would be a bit tricky. Keep a variable that points to the last position at which a delimiter was read , now while reading a character … | |
 booted from a flash drive to go into the live cd mode , there , as soon as i double clicked a flash video , the screen went all jumbled up , and my pc hanged up. later i tried to check it in oracle virtual box , … | |
I see fresh college grads all around running for a (/an almost) saturated software development field. Myself not being any exception to this either. But I'm kind of in a dilemma. 1. I have invested around 12 months learning stuff like Java, databases and other cs stuff. 2. but I … | |
[Version 1](http://www.daniweb.com/software-development/java/threads/462737/generic-resizing-circular-array-.-do-i-need-to-implement-iterable-) had quite a few problems that i didnt think about. A lot of them were pointed out in the replies. I tried to correct them as best as i could to make this code. However , I'm having some doubts regarding what to do while implementing the Collection … | |
Since the underlying data-structure used here is an array , which is itself iterable via `for-each()` , i'm wondering how much benefit implementing `Iterable` will provide here. I would appreciate if someone could review my code and suggest any further improvements. **Code:** import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException; class ResizingCircularArray<E> … | |
Re: are you sure that the code you posted is exactly the one your working with ? If thats the case , then i see a lot of spelling mistakes in your code , Starting from the 1st line. Maybe taking care of them will bring you better luck. Your code … | |
i had previously worked with the GNS3 and cisco packet tracer console as a part of college lab work. It involved setting up and simulating LAN and VLAN topologies. Iv seen people in the CS dept , as part of their course , simulate various TCP/IP functions using C and … | |
Re: **generally** , not much. but its good to have the option i suppose. Unless your doing something really big , or doing some testing , doesnt matter much. you may like reading [this](http://www.coderanch.com/t/568811/Performance/java/Array-ArrayList) . | |
last night , the downvote counter was at 6. it hasnt been 8 hours , and my downvote counter rockets upto 27! all with just 2 members who have downvoted. one point though : when i click the "posts voted down" , shows only 3 posts. ps : i dont … | |
Re: I feel sad that for a few dumbass people with no sense of what they are saying , students from india get such a bad rep. Unfortunately , the rotting education system in the country keeps feeding off peoples hopes that getting their child to an engineering institution would guarantee … |
The End.