- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 2
- Posts with Upvotes
- 2
- Upvoting Members
- 2
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
49 Posted Topics
people in the forum who have jobs or who are recruiters or own a company (yes I'm referring to people such as sergey brin and lawrence page); what advice would you give to an entry level computer science student about what to put on resume and cover letters. i'm looking … | |
Hello, I need some help sorting out this error: *Warning: Cannot modify header information - headers already sent by (output started at /Applications/MAMP/htdocs/new/Archive/phplogin/includes/main/header.php:3) in /Applications/MAMP/htdocs/new/Archive/phplogin/register.php on line 71* I've included the code below, can someone please help me figure this out. I've been working om this issue for 4 hours … ![]() | |
Hello, I am building a blog - just to shapen my skills. Since leaving college I feel like I have been loosing my programming edge. I work in IT and I primarily work on Oracle databases as a developer. Here is what I am building - a blog. I have … | |
Hello, I created 2 lightboxes on my page. When I just had one, everything worked fine. The 2 lightboxes are not displayed at the same time. There are 2 links that open each respectly. <a href="#" class="lightbox1">Open box 1</a> <a href="#" class="lightbox2">Open box 2</a> The following is the HTML/CSS: <div … | |
Hello, I have a simple form. <form action="" method="post"> <label for="user">Name</label> <input type="text" name="user" id="user" /> </br> <label for="title">Title</label> <input type="text" name="title" id="title" /> <textarea name="body" rows="20" cols="60"></textarea> <input type="submit" value="Add Post" /> </form> I am trying to insert this to a table, which I am able to do. But … | |
Hello, I have a menu in a webpage. I am looking to make the code reusable for another page, that way I can manage the links in one place rather than multiple page. Anyone know a way to do this? Thanks Drjay | |
Hello, I need some help with understanding floats. I have a div named holder, which as the name suggest, is a holder. Inside this holder I have 2 containers. One is the left container and the other is the right container. HTML <div id="holder"> <div id="contentleft"> <p>This is a paragraph. … | |
Hi, I have this requirement that I have been trying to solve for a couple of days now. I have this source DB. The objective is to extract data from this source DB and insert into a oracle table. The meta data for both tables are the same (1-1 mapping). … | |
Re: You cannot update (or insert/delete -- DML operations) a view. You can update a table, which will reflect on the view. ![]() | |
Hello, I want to create an application that can make selections from a webpage. I did an assignment for school and now I want to extend my program. The assignment was to parse a webpage and display the data. The webpage's exact URL was given to us. The URL was … | |
Hello, Is there any way of checking all elements in a queue without calling pop(). [code] while(!q.empty()){ cout << q.front() << endl; q.pop() } [/code] this is essentially what I have done. There is a bug in my program and I'm trying to check what is wrong. I don't want … | |
I need help with inserting a string for both key and value to a map. [code] while(!myHuffFile.eof()){ string word, code; int freq; myHuffFile >> word >> freq >> code; if(word == ""){ break; }else{ _fileMap.insert(pair<string,string>(word,code)); _freqMap.insert(pair<string,int>(word,freq)); } } [/code] error: error: conversion from `std::_Rb_tree_iterator<std::pair<const std::string, std::string> >' to non-scalar type … | |
Hello, My friend and I are trying to program a basic 3D modeler. Nothing fancy just a very basic program. I was wondering if anyone here could help me with reading material. We need to figure out the math and that is what I can doing now. Any good books … | |
Hello, I need to compare arrays in perl. Now the arrays are arrays of strings. The strings are similar to the following pattern: user:user@machinename.domain.com There are 4 machines. M1 M2 M3 M4 There are 4 arrays and each with a bunch of users. some users appear on multiple machines. I … | |
My friend and I are working on an Internet bot. We want to make a bot that given a website, would index into a table. Example -- Given the website: [url]www.daniweb.com[/url] Add to table: [url]www.daniweb.com/c++[/url] [url]www.daniweb.com/c++/forum[/url] [url]www.daniweb.com/java[/url] etc... Any suggestion on how to do this? | |
Re: so a newbie: start here [CODE] #include <bitset> #include <cstdlib> int main(){ // you will need some sort of a loop for (int i =0; i < 5; i++){ // go from 0..5, you could even use a while loop or a do-while loop // here you generate number using … | |
Re: Just out of curiosity, how do you stop the while loop with control+z? --drjay | |
can someone please explain to me how read write work in sock programming. my assignment is to run a server and client. the client ask the server "who are you?" and the server replies with the servers name and date and time. i cannot post my whole code here as … | |
What are names starting with the ":", are they variables, constants or something else? drjay | |
anyone here know lisp? i'm trying to code a trie in list. i know what to do as i already did it in ruby and python. i just need some guidance with doing the same. reply to this thread if you know lisp or contact me directly at< snipped email> … | |
I have a recursive function. My base case is: [code] somemethod(somelist) [INDENT]if len(somelist) == 0[/INDENT] [INDENT][INDENT]return[/INDENT][/INDENT] ... [/code] This is suppose to return the function to the place where it was called from. [code] main() ... somemethod(somelist) ... [/code] But I get this error: AttributeError: Trie instance has no attribute … | |
hello, I wanna create a struct in python. the struct needs to have a char and an array of chars. eg. (ruby code): [code] Somestruct = Struct .new(:character, :characterArray) structure = Somestruct.new(" ", []) [/code] How do I do this. I made a Trie in ruby and now I wanna … | |
Follows, I need some help with fixing a bug in my program. I can't post the entire code here as its an on going assignment. I'm building a Tree in Python. [code] class Tree: def __init__(self, f, r): self.first = f self.rest = r [/code] This is my Tree. I … | |
i'm a java c/c++ person. trying out ruby for the 1st time! how do i do something like this in ruby: [code] //this is java public static void main ( String args [] ) { File inFile = new File ( args [ 0 ] ); File outFile = new … | |
I'm trying to code a Trie in Python. Any suggestions as to where I should begin? drjay | |
does anyone know erlang here. i really need help with this one. for starters how do you ran a program? | |
Re: I don't really understand the question. Post the project, we might then get an idea of what is required. | |
Re: I think you are not cout-ing properly. Copy-paste the entire output or exactly which cout statement out do you have here? | |
Re: 3000 lines? are they all in main()? If that is the case that is your 1st problem. 3000 lines or 30,000 lines want matter if you break the code down. Get into the habit of writing smaller methods. I usually try to keep my methods as simple and small as … | |
hey can someone suggest the best way to get the list of files in a directory. i only need files no need directories. given a folder, i want to write a program that gets all the files in it. its part of a much bigger program. appreciate any help. many … | |
how do i concatenate a an array. This is the code. [code] char data [128]; char c, s, l; char *cmd_array [128]; count = 0; char * pch_W; pch_W = strtok ( inbuf, " " ); while ( pch_W != NULL ) { cmd_array_W [ count ] = pch_W; pch_W … | |
this is a general question. do you think that a bandwidth estimator can be used to measure the bandwidth and optimise a users video viewing experience. in other words, if i have a 56k connection can i still watch youtube or for that matter a live stream? of course if … | |
I doing this server and client program. The sever has to output to the client. [code] strcpy ( outBuf, " " ); sprintf ( outBuf, "cylinder: %d Sector: %d\n", cylinders, sectors ); if ( write ( client_sockfd, outBuf, strlen ( outBuf ) + 1 ) < 0 ) { perror … | |
I'm looking for some help resolving the following warning... warning: format ‘%c’ expects type ‘char*’, but argument 6 has type ‘char (*)[128]’ [code] char data [ BLOCK_SIZE ]; sscanf ( inBuf, "%c %c %c %c", &mode, &c, &s, &data ); [/code] essentially what happens is inBuf is a 'string' and … | |
[code]int c, s; sscanf ( inBuf, " %d %d", &c, &s ); [/code] I wanna check if c and s are actually int. suppose if you enter a letter rather than a number, how do i check? drjay | |
Hi, I did a project a while back and as the grading TA insist on it compiling on Solaris. I have a 0 for a perfectly working project. Can someone please help me with getting a program to compile on both the free free bsd and of course annoying Solaris. … | |
just out of curiosity (definitely not because i have a deadline tonight lol) how does a plagiarism detecting software work? any ideas? i'm pretty sure the program compares run time... for example if i create an array in main [code] main(){ //create array and add numbers } [/code] then in … | |
if we use queue from c++ stl, we don't need //void enqueue(struct queue *q, int a) //int dequeue(struct queue *q) functions? my TA has it on the slides but since the c++ queue has push and pop enqueue and dequeue isnt needed, right? | |
I want to read a file character by character and add to an array. [code] while(!feof(inputfile)){ chKey = getc(inputfile); for(int i = 0; i<=51; i++){ chKey = enc[i]; } }[/code] Since there isn't like a add() function, how do you move the position by 1 and add something to an … | |
The following is a project description of a project that I have to complete: Write a shell-like program that illustrates how UNIX spawns processes. This program will provide its own prompt to the user, read the command from the input and execute the command. Let the shell allow arguments to … | |
hey, given one side and an angle how do you calculate the other sides and angles in a right angle triangle in c++. I'm basically looking for an algorithm. Thanks drjay | |
I'm doing a OS class. Trying to implement this pseudo code: * Forking is fun! Simple tips First, fork the child process: pid_t ForkPID; ForkPID = fork(); Then write a quick switch statement! switch (ForkPID) { // -1, fork failure case -1: printf("Error: Failed to fork.\n"); break; // 0, … | |
I'm working in a project and part of it is to do a small encryption program. W can use substitution encryption where each character is substituted by another pre-determined character. Can someone kindly help me with an algorithm. I just can't think any more! Thanks drjay | |
I small maze game and I got a key Listener. I got it to work. The problem I have is that i have a text box in the gui and Key Listener is added on to the that. but I want to set it so that when the window is … | |
I made a maze game. When you click the button, a navigator is created. But before you create a navigator, if you try moving the navigator, there is a null pointer exception. since the navigator can be moved by pressing keys on the keyboard, I want an error message to … | |
I have string and a map<string,int> i need to iterate through the map and find string[i] and replace the int with the string. eg: if map contains hello 6 world 4 its 3 me 60 if the string is "its me hello world world hello" output should be "3 60 … | |
I encode a text file using a huffman tree. Which print out to the screen and and output to a file. File only contains the last line that prints to the console. [code]void traverse(string code = "") const { string outputFile = "huffman.txt"; ofstream outfile(outputFile.c_str()); if (child0 !=NULL) { static_cast<huffman_item<dtype> … | |
Can some one help me with this error: =========================================error================================ In file included from /usr/include/sys/signal.h:34, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/pthread.h:22, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr-default.h:37, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/gthr.h:98, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/sparc-sun-solaris2.6/bits/c++io.h:37, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/bits/fpos.h:44, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iosfwd:46, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ios:44, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/ostream:45, from /util/gnu/lib/gcc-lib/sparc-sun-solaris2.6/3.2.2/include/c++/iostream:45, from main.cpp:1: /usr/include/sys/siginfo.h:259: 'ctid_t' is used as a type, but is not defined as a type. /usr/include/sys/siginfo.h:260: 'zoneid_t' … |
The End.