User Profile

Collapse

Profile Sidebar

Collapse
sanou
sanou
Last Activity: Dec 6 '06, 07:30 PM
Joined: Jul 24 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • sanou
    replied to a missed IF statement
    in C
    my apologies, i originally posted some outdated code

    i double checked the direction_adjus t variable and it does not appear to play a role in the mistake

    i think it maybe more of a problem with the windows form timer. like somehow the function that activates the timer loop is not properly synchronized with the rest of the program.

    as you know, i'm using this program to simulate some simple physics. my...
    See more | Go to post

    Leave a comment:


  • sanou
    replied to a missed IF statement
    in C
    well this is weird, i tried moving the IF statement around. I nested it into another if statement looking like this,

    Code:
    if(y_current_position > bottom){
       y_current_position = bottom;
       reset_y_time = (2 * ((0 - y_initial_velocity)/gravity)) - y_time;
       y_time = abs(reset_y_time);
       y_i = abs(reset_y_time * 10);
       y_initial_velocity *= 0.7;
    
          if(x_initial_velocity < 1){
    ...
    See more | Go to post

    Leave a comment:


  • sanou
    replied to a missed IF statement
    in C
    yea it was a typo

    i changed it to x_initial_veloc ity but it still doesn't work. i'm really confused
    See more | Go to post

    Leave a comment:


  • sanou
    replied to a missed IF statement
    in C
    Code:
    public: static double 
    
    // constants
    degrees = 45,
    radians = 0.0174532925 * degrees,
    
    // general time counters, i=1 means 1 tick per millisecond; 1000 ticks = 1 sec
    i = 0,
    time = 0,
    
    // unique time components for x and y
    x_i = 0,
    x_time = 0,
    y_i = 0,
    y_time = 0,
    
    // direction vector
    y_current_direction = -1,
    x_current_direction
    ...
    See more | Go to post

    Leave a comment:


  • sanou
    started a topic a missed IF statement
    in C

    a missed IF statement

    Hi

    I have a loop that is iterating at approx 1000 times per second.

    There is an IF statement nested inside that instructs the program to stop (return) if a variable < 5. However, the program seems to always miss this condition. Even stranger, for any value > 5, the IF condition is properly followed. The variable in question is starting out from a very large value and with each iteration of the loop, being...
    See more | Go to post

  • sanou
    replied to clock simulation in C++
    in C
    Well I'm working on a clock too.

    Working with time.h here is some pseudocode

    global variables: flag = 0, start_time = 0, end_time = 0

    button_click_fu nction()
    if flag = 0
    start_time = clock()
    flag = 1
    else
    end_time = clock()
    flag = 0


    so this works fine. clicking on a button captures an initial time point, click...
    See more | Go to post

    Leave a comment:


  • sanou
    replied to noobie question regarding strings/data validation
    in C
    Here's my revised code. The next step would be to creat a function that would parse a string and check if there's any non-integers/blanks in it.

    I know there are libraries out there which can handle this, but it's been years since i've done any coding (dropped out comp sci major in college to do biology) and i needed the refresher.

    Banfa I used a variation of ur algorithm. it's a little bit more cumbersome, but i needed...
    See more | Go to post

    Leave a comment:


  • sanou
    replied to noobie question regarding strings/data validation
    in C
    Yeah I thought about the basic algorithm some more and I realized there were probably easier ways of doing it. I'm still learning :p

    Thanks for the tips guys. Much appreciated.
    See more | Go to post

    Leave a comment:


  • sanou
    started a topic noobie question regarding strings/data validation
    in C

    noobie question regarding strings/data validation

    Hi

    No doubt this question, or a similar version of it, has been asked before. But, I was looking around the forums and i couldn't find anything.

    I'm using VC++ to create a simple calculator that sums the values from 2 textboxes. I wanted to implement a simple data validation that would spit out various error messages if the user typed in incorrect data.

    I managed to vomit out the following code. ...
    See more | Go to post

  • sanou
    started a topic excel formatting & user defined functions

    excel formatting & user defined functions

    I was trying to create a user defined function for Excel with the following features:

    Check target cell:
    -if target is empty (whether originally empty or data has since been cleared from the cell) then set target cell dimension to default row height of 17 pix, column width of 64 pix. when i say empty i mean no cell value, but there will be a formula entered into the cell.
    -if the target cell's current row is a multiple...
    See more | Go to post

  • sanou
    started a topic Leitner Cardfile System

    Leitner Cardfile System

    I'm trying to create a small program that simulates studying with flashcards. I've done a little background research and the Leitner Cardfile System seems to be a popular algorithm, although many argue that it only capitalizes on short term memory rather than promoting long term retention.

    Anyone here ever dealt with something similar to this? I think if i found the right algorithm, this would be an interesting little project....
    See more | Go to post

  • sanou
    replied to Exporting Data from JSP to Excel
    have u tried formatting how u want the numbers to look like in the cells? i think maybe this is more an issue with aethestics.
    See more | Go to post

    Leave a comment:


  • you're right, i don't understand that much about forms.

    i think i'm attempting the impossible. after looking into this, i realized that what i'm really trying to do is attempt cross server scripting. so unless i had full access to xyz domain, then i'm stuck with manual data entry as my only option. my hope was automate data entry, using values from a data sheet to autopopulate a form on www.xyz.com

    so unless i'm seriously...
    See more | Go to post

    Leave a comment:


  • sanou
    started a topic referencing an existing window

    referencing an existing window

    me again

    ok this is probably not possible...

    but let's say i have an explorer window open to www.google.com

    is there any way to reference that browser window...that particular instance?

    i've figured out how to have a parent window spawn a child window, have data entered into child window and then submit the data back to the parent window. communicating from parent to parent would be the...
    See more | Go to post

  • Wow, I just realized how super amateur I am at this stuff. Haha.

    So I've figured out how to manipulate excel data using Javascript (very basic manipulations but cool nonetheless).

    Saif, I have no idea what you're talking about. Mind clarifying a bit? Haha sorry, I really slow at this.

    From what I'm understanding.. .
    1) if website www.XYZ.com has an input textbox named "BOX1"
    ...
    See more | Go to post

    Leave a comment:


  • Maybe this is involves some sort of dynamic update?
    See more | Go to post

    Leave a comment:


  • sanou
    started a topic using javascript to write to same html page

    using javascript to write to same html page

    Javascript and html form question...

    I created a html page with a form called MyForm

    I enter values X and Y into MyForm

    For onclick, I reference a function in the header called GetCoord() that is supposed to print X and Y. I don't want X and Y to be printed out in an alert window. I don't want to create a new webpage that would display X and Y. I don't want to use frames.

    Instead I want...
    See more | Go to post

  • yea, .csv's seem to be only solution i can find that comes close to solving this problem. i guess what i'm really trying to accomplish is to access a web page with data entry fields and autopopulate those fields with values from a file saved on my hard drive. ah screw it. maybe i'll try teaching myself php or something. :P thx for ur help.
    See more | Go to post

    Leave a comment:


  • sanou
    started a topic how to copy data from excel to webpage form?

    how to copy data from excel to webpage form?

    Hi does anyone know if the following is possible?

    I have an excel spreadsheet with values that i need transferred to a certain website's form. for instance, i have a value in excel spreadsheet xyz that i wanted to transfer to a data entry box on a webpage that is concurrently open. basically i want to make it simple enough that at a push of a button, i can copy/paste all my data into another form.

    alternatively,...
    See more | Go to post
No activity results to display
Show More
Working...