Posts
 
Reputation
Joined
Last Seen
Ranked #419
Strength to Increase Rep
+8
Strength to Decrease Rep
-2
81% Quality Score
Upvotes Received
75
Posts with Upvotes
53
Upvoting Members
29
Downvotes Received
33
Posts with Downvotes
31
Downvoting Members
4
6 Commented Posts
10 Endorsements
Ranked #180
Ranked #464
~162.20K People Reached
About Me

enthusiast programmer.

Interests
java, datastructures.
PC Specs
win8 , 500gb hdd , 4gb 1333Mhz ddr3 , radeon 7670m
Favorite Tags

184 Posted Topics

Member Avatar for Duki
Member Avatar for Rahul47

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)

Member Avatar for Reverend Jim
0
21K
Member Avatar for nithyananthanaiker

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 …

Member Avatar for Neha_18
0
1K
Member Avatar for Adhya_1

It's funny to see ASAP coming from someone apart from one's stingy boss :D

Member Avatar for Lucaci Andrew
0
259
Member Avatar for somjit{}

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 …

Member Avatar for rproffitt
0
143
Member Avatar for Huseyin_1

Getting a private auto-message for an sponsored post, and coming here to find homework.. just screwed my mood.

Member Avatar for somjit{}
0
282
Member Avatar for somjit{}

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 …

Member Avatar for somjit{}
0
472
Member Avatar for somjit{}

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 …

0
118
Member Avatar for somjit{}

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 …

Member Avatar for somjit{}
0
428
Member Avatar for somjit{}

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 …

Member Avatar for almostbob
0
277
Member Avatar for debasisdas

if you had looked at what you didnt want to see, you might have felt less of what you didnt want to feel.

Member Avatar for James_28
8
17K
Member Avatar for somjit{}

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 …

Member Avatar for Mouche
0
294
Member Avatar for <M/>

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 …

Member Avatar for diafol
0
236
Member Avatar for <M/>

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 ... )

Member Avatar for Lardmeister
0
238
Member Avatar for somjit{}

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> …

Member Avatar for cmps
0
160
Member Avatar for woomar

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.

Member Avatar for somjit{}
0
244
Member Avatar for sirlink99

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 …

Member Avatar for sirlink99
0
305
Member Avatar for somjit{}

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 …

Member Avatar for ~s.o.s~
0
210
Member Avatar for somjit{}

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 …

Member Avatar for somjit{}
0
796
Member Avatar for somjit{}
Member Avatar for somjit{}

viewed <M/>'s profile ... dude has 105 endorsements ! Congratulations :D

Member Avatar for <M/>
0
195
Member Avatar for Hanyouslayer

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 …

Member Avatar for Hanyouslayer
0
816
Member Avatar for somjit{}

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 …

Member Avatar for JamesCherrill
0
146
Member Avatar for woomar

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.

Member Avatar for somjit{}
0
215
Member Avatar for woomar

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.

Member Avatar for JamesCherrill
0
753
Member Avatar for somjit{}

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)

Member Avatar for somjit{}
0
263
Member Avatar for dogface13

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 ..

Member Avatar for dogface13
0
308
Member Avatar for android_gl

> 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.

Member Avatar for JamesCherrill
0
307
Member Avatar for tindoh

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 ?

Member Avatar for somjit{}
-1
171
Member Avatar for somjit{}

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 …

Member Avatar for JamesCherrill
0
179
Member Avatar for cleve23

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 ?

Member Avatar for JamesCherrill
0
209
Member Avatar for Pyler

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 …

Member Avatar for stultuske
0
276
Member Avatar for charlononnon

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] …

Member Avatar for somjit{}
0
592
Member Avatar for Pyler
Member Avatar for stultuske
0
176
Member Avatar for dnanassy

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 …

Member Avatar for somjit{}
0
785
Member Avatar for frankenfrank

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 …

Member Avatar for vegaseat
0
425
Member Avatar for somjit{}

I like watching stuff like google tech-talks , josh bloch seminars/talks etc for Java. Can somebody provide something similar in nature for C# ?

Member Avatar for somjit{}
0
166
Member Avatar for MasterHacker110

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 …

Member Avatar for sepp2k
0
259
Member Avatar for Fatima_110

google up "*sieve of eratosthenes*" . the algorithm results in a small but powerful code for finding primes.

Member Avatar for jwenting
0
303
Member Avatar for Stein102

[Algorithms (4th Edition)](http://www.amazon.com/Algorithms-4th-Edition-Robert-Sedgewick/dp/032157351X)

Member Avatar for prakash.seetharaman
0
115
Member Avatar for Seswing142

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 …

Member Avatar for stultuske
0
8K
Member Avatar for somjit{}

![b62b330b33236e12160db60d6c858d9d](/attachments/small/3/b62b330b33236e12160db60d6c858d9d.JPG "align-right") 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 , …

Member Avatar for farmwife
0
367
Member Avatar for somjit{}

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 …

Member Avatar for Coloradojaguar
2
242
Member Avatar for somjit{}

[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 …

Member Avatar for somjit{}
0
297
Member Avatar for somjit{}

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> …

Member Avatar for somjit{}
0
1K
Member Avatar for ZombieKnight93

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 …

Member Avatar for asaa
0
252
Member Avatar for somjit{}

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 …

Member Avatar for somjit{}
0
212
Member Avatar for ganges

**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) .

Member Avatar for buddareddy.java
-1
274
Member Avatar for somjit{}

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 …

Member Avatar for deceptikon
0
306
Member Avatar for Skyline77

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 …

Member Avatar for somjit{}
-7
588

The End.