homework

dll question (Load-time dynamic linking and Run-time dynamic linking)

What is the difference between Load-time dynamic linking and Run-time dynamic linking? Thanks! ...

Designing a database schema for a Job Listing website?

For a school project I'm making a simple Job Listing website in ASP.NET MVC (we got to choose the framework). I've thought about it awhile and this is my initial schema: JobPostings +---JobPostingID +---UserID +---Company +---JobTitle +---JobTypeID +---JobLocationID +---Description +---HowToApply +---CompanyURL ...

C++: question about pointers and references

I have a function which takes a reference to an object- void move(Ball& ball); I have another function calling 'move()' which has a pointer to ball - void foo(Ball* ball){ //call move() } How is foo() supposed to pass ball to 'move()'? Should it be like - move(*ball); or move(ball); or move(&ball); ...

How do I build an object that stores pictures?

If you were building an object to store a photo (for a program like photoshop) how would you design it? What properties would you take into account? ...

How can I redirect my domain to a different page or directory?

Please suggest a method other than use of .htaccess.. ...

Java Blob to Image

I have a blob data object which i can return from a database however i want to be able to use this on an awt application which is running on a PDA running J2ME. How would i do this? ...

multidimensional character array question

how do you initialize and uninitialize a multidimensional character array in C++? ...

Algorithm to find two repeated numbers in an array, without sorting

There is an array of size n (numbers are between 0->n-3) and only 2 numbers are repeated. Elements are placed randomly in the array. e.g. in {2, 3, 6, 1, 5, 4, 0, 3, 5} n=9, and repeated numbers are 3 and 5. What is the best way to find the repeated numbers? P.S. [You should not use sorting] ...

ELF file versions

Hi guys, I'm working on a clone of the elfdump command. My program works fine when running 'elfdump -ecps file` on all executables. However, when I run my program on a library file, say libc.so, it prints out an incorrect version number for all symbols in the .symtab section (specifically they are all zero). I've looked over the documen...

INNODB Cascade Syntax / Logic Problem

Hi, I have a problem with an SQL database I'm creating. I'm trying to switch it over to use INNODB but I can't seem to get the syntax (or possibly logic) correct for cascading. Here's a part of the code erroring. It does not like line 40. Error output in the usual cryptic (to me at least) form: ERROR 1005 (HY000) at line 36: Can't ...

MySQL Stored Procedure add row and return key

The question I have been asked for this assignment is: Using a sample data, add a new incident and a call record in a single transaction. However I know it doesn't read to well and that's because of the language that my lecturer uses. But from what I gather he would like me to add a record to an incident table and...

How to make a better mapper in Scheme using Streams

The Scheme implementation of map takes N+1 arguments: a procedure of N arguments, and N lists. Further, it terminates mapping when the end of the shortest list is reached. An alternative is to provide a default value for each list, which will be treated as the next element(s) of each list if it turns out to be shorter than the others. ...

How to create a file of size more than 2GB in Linux/Unix?

I have this home work where I have to transfer a very big file from one source to multiple machines using bittorrent kinda of algorithm. Initially I am cutting the files in to chunks and I transfer chunks to all the targets. Targets have the intelligence to share the chunks they have with other targets. It works fine. I wanted to transfe...

Object oriented Login functionality

User Login functionality is very common to many applications. I would like to see how people implement this functionality in Object oriented way. I have a User and I need to validate the userId and password against a system(this could be ldap, database, etc.). So what kind of classes and operations you would create to achieve this funct...

learning c#

Hy ….I a programming beginner …. I do understand the basic concepts of c#. Now I want to improve my c# skils. I´m looking for a community, where I can find a lot of articles, best practices and even perhaps weekly assignment, which are discussed together. ……and of course I have already googled and found some sites, but I haven´ t foun...

"Dead code" in Xilinx

I have some VHDL code I'm writing for a class. However, the synthesis tool identifies cell3, cell2, and cell1 as "dead" code and it won't synthesize it. I really have no idea what's going on to cause cell 3,2,1 to be removed in synthesis; I've reviewed it some 5+ times and asked several different people and I can't find the "why". Not...

How do you detect where two line segments intersect?

How do I determine whether or not two lines intersect, and if they do, at what x,y point? ...

How to start with a PHP website?

For a school project I have to produce a website using PHP that allows user to generate there own article or comment on news or others articles. I was wondering how it is best to use the GET function to show the content in an include file and also use the get fuction for other include files such as the login page and other content the de...

How to design servlets to send request to servers to obtain pages and to parse it to retrieve images

Using servlets I need to send request to predefined urls and the pages obtained must be parsed to determine the image tag and the keywords associated with the image and thus receive the links of the image or obtain the images. ...

Python generators and co-routines.

Can someone provide me with a brief introduction on how to use Python generators to implement coroutines? ...