Showing results 1 to 16 of 16
Search took 0.01 seconds.
Posts Made By: echobase
Forum: Ruby Jun 2nd, 2008
Replies: 0
Views: 2,466
Posted By echobase
Passing javascript variable back to server

Hi-

I have a javascript string variable:

var string1 = "blah blah blah";

....and after some operations are done to it (NOT directly by the user but triggered instead by events happening in the...
Forum: Ruby May 6th, 2008
Replies: 0
Views: 1,639
Posted By echobase
Need help implementing live search

Hello all-
I'm looking for some advice.... As a newbie to rails and ajax I've been enlisted to add a feature to an existing application. In a page where users create new accounts I need to add some...
Forum: MySQL Feb 5th, 2008
Replies: 3
Views: 518
Posted By echobase
New to joins - Need help with query...

Hello-

I have these two tables:

CREATE TABLE ampref (
ampref_id serial NOT NULL,
amp_id integer NOT NULL,
code character varying(255) NOT NULL,
description text
);
Forum: Ruby Dec 3rd, 2007
Replies: 1
Views: 2,459
Posted By echobase
single table inheritance

Hi-

I'm designing the database for my app and am trying to do it as intelligently as possible. I'm trying to avoid an explosion of tables and thought single table inheritance (STI) might be the...
Forum: Ruby Nov 9th, 2007
Replies: 4
Views: 4,699
Posted By echobase
Forum: Ruby Nov 2nd, 2007
Replies: 4
Views: 4,699
Posted By echobase
Forum: Ruby Oct 29th, 2007
Replies: 4
Views: 4,699
Posted By echobase
Multiple db tables in Rails...

Hello-

As a newbie Rails developer, I realize I should have a solid knowledge of SQL regardless of the wonderful abstraction Rails provides. That said, I'm trying to build my first app within the...
Forum: C Jul 19th, 2007
Replies: 6
Views: 840
Posted By echobase
Re: Need help with signals problem please...

I'm doing an exercise that requires the use of signals.
Forum: C Jul 19th, 2007
Replies: 6
Views: 840
Posted By echobase
Need help with signals problem please...

Hello-

I'm trying to write a classic producer/consumer program using signals. My parent process (producer.c) forks and executes a new child program (consumer.c). The producer copies values from an...
Forum: C Jun 13th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

It works! ! Thanks very much to ~s.o.s~ and Ancient Dragon.
Forum: C Jun 12th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

Hey you guys-

The program as it stands now is basically the version ~s.o.s~ just posted. The fread function now works beautifully,but there is no mechanism to reverse the text. (The statement in...
Forum: C Jun 11th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

That makes sense because the third parameter is the number of blocks to read... I changed it (see below) but it still doesn't work. It compiles, but fread still fails. The input file is just a...
Forum: C Jun 11th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

Ancient-
I see why you recommended fputc - the OS buffers it ,and therefore it is still efficient. Also, I read more about malloc(), to understand that better. My program still doesn't work but I...
Forum: C Jun 10th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

Sorry, dumb mistake. I meant to write !=0 instead of !=1. But can you tell me if in the for loop I should be reading each char in ptr into a new target array that should then be passed to an fwrite...
Forum: C Jun 10th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

First, thank you for you generous reply. The code that follows is what I have so far. It compiles, but when I run it, I get a runtime error indicating the fread function has failed. The code looks...
Forum: C Jun 10th, 2007
Replies: 23
Views: 9,176
Posted By echobase
Re: how to read a text file backwards?

Hello all-

I'm new to C programming + this is my first post.

I'm also trying to write a progam that simply reads in a single text file, then copies the contents in reverse order to a new file. I...
Showing results 1 to 16 of 16

 
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 12:40 am.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC