Posts
 
Reputation
Joined
Last Seen
Ranked #301
Strength to Increase Rep
+7
Strength to Decrease Rep
-1
100% Quality Score
Upvotes Received
26
Posts with Upvotes
20
Upvoting Members
19
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
11 Commented Posts
~53.3K People Reached
About Me

PhD student in Computer Science Education

Favorite Tags
Member Avatar for jozz3

I have to convert a piece of C++ code to Python. Except I can't understand what it's doing. This is the code: [CODE]#include <iostream> using namespace std; int calculate(int values[], int size) { int answer = 0; for (int 1 =0; i< size; i +=1) } answer += values[1]; } …

Member Avatar for Smartfitness33
0
8K
Member Avatar for mrgadgets

What c framework are you people using to develop a game written totally in c? Mind to share?

Member Avatar for DeanMSands3
0
163
Member Avatar for jbennet

# Post your bugs here: # ##My bugs:## * ADS! - I have ads! - I never used to (being staff) * Also, do I really have to do the "Are you human?" capctha - kind of sucks.. also I do not have permission to make new tags? after 16k …

Member Avatar for Airshow
0
2K
Member Avatar for IsharaComix

I've been unable to connect to the Daniweb IRC server for the past few days. Is it temporarily down? My life just doesn't feel complete unless I'm idling in there and not doing anything. :|

Member Avatar for blud
0
76
Member Avatar for caut_baia

Should we try to encourage other members to join the IRC channel by putting a link to say this thread [url]http://www.daniweb.com/community-center/geeks-lounge/threads/194321[/url] in place of our signature ?First of all would i be allowed ?I'd really like to see more people online and i bet i'm not the only one.

Member Avatar for royng
3
234
Member Avatar for IsharaComix

Recently, whenever I try to visit any user's profile here on DaniWeb, I get an ugly and intrusive browser dialog trying to push Flash on me. It's more than intrusive... it's very weirdly-worded. [quote] You need Adobe Flash Player 8 (or above) to view the charts. It is a free …

Member Avatar for WaltP
0
275
Member Avatar for rickster11

I'm trying to complete the good old Knight's tour (Knight piece must touch every square on board without touching a square twice. My code goes all the way to the point where the knight is at a dead end, and I need to revisit the last stack... How do you …

Member Avatar for pali185
0
939
Member Avatar for Dani

So I added a new feature to DaniWeb over the weekend that shows your member rank in your member profile. So just go to your member profile and you can see where you rank among all DaniWeb members in terms of your post count, your reputation, and your number of …

Member Avatar for peter_budo
3
671
Member Avatar for dspjm

A ignorant question, suppose i type "fc 89" in a terminal, which will take me into a text editor, after i modify the command, how can i exit the editor and execute the command? Thanks for answering...

Member Avatar for dspjm
0
93
Member Avatar for jon.kiparsky

Well, we all know that the only games worth playing are ASCII games, right? (games with pictures are for people with no imagination...) So - leaving aside all of the wonderful arguments about adventure versus zork, and all... of the roguelikes, which is king? Rogue, nethack, or larn?

Member Avatar for Blazing Master
0
84
Member Avatar for coil

Hi, I'm trying to install GCC 4.5.1 on Ubuntu for C++ programming. So far, I've tried a myriad of different commands in Terminal to try to update GCC (the preinstalled version is 4.3.2), but none of them seem to work. When I go to update my packages with Synaptic Package …

Member Avatar for IsharaComix
0
149
Member Avatar for jaku78

Ok basically I have a program that is doing a counter clockwise spiral and will print the value i or print out a 0 depending upon if the number is prime. n is equal the length of the spiral while i is the initial center value of the spiral which …

Member Avatar for mitrmkar
0
143
Member Avatar for d00mhammers

Hello everyone, this is my first time here on this website and forum, and after reading through some of it, I think it's very helpful, so I would like to say thank you. I am facing a problem that I have been trying to solve for a few days so …

Member Avatar for arnab sinha
0
309
Member Avatar for IsharaComix

Not sure where bug reports should go, so I'm posting mine in feedback. This morning when I logged in to DaniWeb, instead of getting the redirect page, I somehow obtained a 'login.php' file for the page instead. Opening the file in emacs, it contained (in this order): - A bunch …

Member Avatar for Dani
0
144
Member Avatar for florisvd

Hello, I'm trying to work with I2C and I have the following code: [code] #include <stdio.h> #include <avr/io.h> #include <util/delay.h> #include <compat/twi.h> #define I2C_START #define MAX_TRIES #define I2C_DATA #define I2C_STOP #define i2c_writebyte unsigned char i2c_transmit(unsigned char type) { while (!(TWCR & (1 << TWINT))); return (TWSR & 0xF8); } { …

Member Avatar for florisvd
0
2K
Member Avatar for kirennian

I'm currently having an issue with moving the camera around the z-axis (roll). For debugging purposes, I have an object with which I've tested with all 3-axis rotation and movement and it's working as expected; the object in question as well as the camera class superseed a positions class for …

Member Avatar for dineshguru
0
989
Member Avatar for alc6379

Hey Dani, Site looks great-- I've been trying to get on and lurk more and more. I noticed, though that under Chrome in Windows XP, the "use code tags" watermark doesn't go away when you click or start typing into the box. I remember it used to, but I thought …

Member Avatar for Dani
0
186
Member Avatar for turbomen
Member Avatar for IsharaComix
0
253
Member Avatar for Castiel1631

I have a while loop reading names from a file and placing them in an array. When I print the contents of the array, it prints the last name that went through the loop, so I'm assuming that as the loop is progressing each time the names are being rewritten. …

Member Avatar for IsharaComix
0
136
Member Avatar for Danny_501

Hi all, I'm making a client server program in Linux. I use fork() to create a child process of the server to handle a new client. When a client disconnects it should kill the child process. At the moment the program is able to kill the fist client(server) that connects, …

Member Avatar for Danny_501
0
107
Member Avatar for mrblippy

hi everyone, i am trying to write a java program that assigns a specified number of true values to random elements in an array. for example if i have a boolean array of 10 elements i would like 5 of these elements to be randomly assigned true values. im new …

Member Avatar for mrblippy
0
1K
Member Avatar for karthiken07

Can any one give me an idea for compare these two values in double data type. I hope this if check always gets FALSE, Unfortunately It is TRUE condition. IF you know any solution,Plz suggest to me. # include <stdio.h> int main() { double g = 51.200000000000007; double h = …

Member Avatar for N1GHTS
0
159
Member Avatar for novice20

I am new to python n developing scripts as a part of my project.I need help regarding HOW THE OUTPUT OF THE SCRIPT CAN BE REDIRECTED TO A TEXT FILE(FOR MAINTAINING ERROR LOG), WHILE ALSO PRINTING IT ON CONSOLE?? Thanks for all the help in advance and I am looking …

Member Avatar for novice20
0
157
Member Avatar for gunjannigam

When we use File.getAbsolutePath() we get the path of file as C:\BlahBlah\Blah.txt. But I want the path name as C:/BlahBlah/Blah.txt i.e instead of backward slash "\" i want a forward slash "/" in the path. How to get this. I tried to create a parsefile method. [CODE] public String parsePath(String …

Member Avatar for JamesCherrill
0
182
Member Avatar for gunneronaspooky

Trying to get a program to fine the slope and intercept of a line on a graph.... I've got it all working so far...except the last line. I broke it down into pieces and ran it assigning numbers to the variables, but in the program, it doesn't work. Here is …

Member Avatar for IsharaComix
0
167
Member Avatar for stranger_on_way

[CODE=c] void function(int a, int b, int c) { char buffer1[5]; char buffer2[10]; int *ret; ret = buffer1 + 12; (*ret) += 8; } void main() { int x; x = 0; function(1,2,3); x = 1; printf("%d\n",x); }[/CODE] I found this code on smashing the stack tutorial and the code …

Member Avatar for IsharaComix
0
74
Member Avatar for SWEngineer

At the following web page: [url]http://www.psc.edu/general/software/packages/ieee/ieee.php[/url] What is meant by * or ** like in the following? V=(-1)**S * 2 ** (E-127) * (1.F) where "1.F" V=(-1)**S * 2 ** (-126) * (0.F) +1 * 2**(128-127) * 1.0 = 2 ...etc Thanks.

Member Avatar for SWEngineer
0
76
Member Avatar for Danny_501

Hi all, why is the following code printing the wrong result? [CODE]/* Returns the current time. */ char *time_stamp(){ char *str = (char *)malloc(sizeof(char) * 23); int len; struct timeval tv; struct timezone tz; struct tm *tm; gettimeofday(&tv, &tz); tm=localtime(&tv.tv_sec); printf("\n\n\n%04d-%02d-%02d %d:%02d:%02d:%03d\n\n\n", tm->tm_year, tm->tm_mon, tm->tm_wday, tm->tm_hour, tm->tm_min, tm->tm_sec, tv.tv_usec/1000); sprintf(str, …

Member Avatar for IsharaComix
0
141
Member Avatar for insanely_sane

Ok.. so I just started python (just = 3 hours ago). I have basic input and output set. Hell I even understand slicing and stuff (OMG SUBSTRINGS SO MUCH EASIER ON PYTHON :O ) but Im finding it not so easy to understand how to use for loops (silly me. …

Member Avatar for insanely_sane
0
196
Member Avatar for revsin

I'm a noob, there got that outta the way. Wrote this to serve as a very basic inventory control for our store's iPad inventory. Lets junior employees count our inventory, and then appends the count in a text file. 99% there for what I want, but having trouble getting it …

Member Avatar for revsin
0
100