LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 11-25-2003, 02:18 AM   #1
CatSC
Member
 
Registered: Oct 2003
Location: New Zealand, Wellington
Distribution: Red Hat 9, Gentoo 1.4, Vector 4.0
Posts: 74

Rep: Reputation: 15
I can offer my help


Hello!
At the moment I have a lot of free time and I want to help some
good open source project which is going to make more people
to use linux.
I have about 2 years experience of C++ programing, mainly on
Borland C++ Builder and MSVC. I installed Linux about half
year ago. I also can learn a new language if it is needed.
I can go to Source Forge and ask to join some project, but
first I want to get some advice from you.
Thanks
 
Old 11-25-2003, 04:04 AM   #2
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
There are plenty of orphaned projects on SF. Also, there are hundreds of projects looking for testers/debuggers.
 
Old 11-25-2003, 05:25 AM   #3
CatSC
Member
 
Registered: Oct 2003
Location: New Zealand, Wellington
Distribution: Red Hat 9, Gentoo 1.4, Vector 4.0
Posts: 74

Original Poster
Rep: Reputation: 15
The thing is that I want not only to help but also not to waste my time.
Source Forge is good but, for me it's hard to tell good projects from
projects which are never going to be complited...
 
Old 11-25-2003, 06:01 AM   #4
nowonmai
Member
 
Registered: Jun 2003
Posts: 481

Rep: Reputation: 47
That's really up to you to decide. Just because something is free software doesn't necessarily mean it shouldn't have a target market. I'm sure the last thing the world needs is 'yet another image convertor', but I'd give my left ball for a better installation/setup tool for debian.
 
Old 11-25-2003, 12:12 PM   #5
LogicG8
Member
 
Registered: Jun 2003
Location: Long Island, NY
Distribution: Gentoo Unstable (what a misnomer)
Posts: 380

Rep: Reputation: 30
Check out
http://unmaintained.sourceforge.net/

They have piles of unmaintained projects
some of which were very promising and are
really interesting.

Find something that interests you to code or
something that you need/want.
 
Old 11-26-2003, 06:07 PM   #6
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
find something that bugs you. Write a program to fix it.
*bing* *bing* *bing*
a multitued of ideas there!

titanium_geek
 
Old 11-26-2003, 09:15 PM   #7
john23
LQ Newbie
 
Registered: Nov 2003
Posts: 13

Rep: Reputation: 0
Hey could anyone help me fix my error for this C progam that calculates the surface distance. It is showing some errors.
Thanks
#include <stdio.h>
#include <math.h>
#include <string.h>
#define RHO 6367
#define PI 3.141592654

void read_GPS(float *,float *,float *,char *);
float convert_DD(float *, float *, float *);
float calc_SphereCoord_lat( char *, float *);
float calc_SphereCoord_long(char *, float *);
float deg2rad(float *);
float calc_3DCoord(float *, float *);
float straight_D(float *, float *, float *, float *, float *, float *);
int main(void)

{
float deg_lat_1, min_lat_1, sec_lat_1, deg_long_1, min_long_1, sec_long_1;
float deg_lat_2, min_lat_2, sec_lat_2, deg_long_2, min_long_2, sec_long_2;
float dec_deg_1, dec_deg_2, dec_deg_3, dec_deg_4;
float rad_lat_1, rad_long_1, rad_lat_2, rad_long_2;
float phi_lat_1, theta_long_1, phi_lat_2, theta_long_2;
char s1[10], s2[10], s3[10], s4[10];

printf("Please enter co-ordinates in format of 123 45 30 North\n" );
printf("where 123 = Degrees 45 = minutes 30 = seconds and North = direction.\n");

printf("Please enter in lattitudinal co-ordinates for start point:\n");
read_GPS(起lat_1,&min_lat_1,&sec_lat_1,s1);
dec_deg_1 = convert_DD(起lat_1,&min_lat_1,&sec_lat_1);
rad_lat_1 = calc_SphereCoord_lat(s1, &dec_deg_1);
phi_lat_1 = deg2rad(&rad_lat_1);

printf("Please enter in longitudinal co-ordinates for start point:\n");
read_GPS(起long_1,&min_long_1,&sec_long_1,s2);
dec_deg_2 = convert_DD(起long_1,&min_long_1,&sec_long_1);
rad_long_1 = calc_SphereCoord_long(s2, &dec_deg_2);
theta_long_1 = deg2rad(&rad_long_1);
calc_3DCoord(&phi_lat_1, &theta_long_1);

printf("Please enter lattitudinal co-ordinates for final destination:\n");
read_GPS(起lat_2,&min_lat_2,&sec_lat_2,s3);
dec_deg_3 = convert_DD(起lat_2, &min_lat_2,&sec_lat_2);
rad_lat_2 = calc_SphereCoord_lat(s3, &dec_deg_3);
phi_lat_2 = deg2rad(&rad_lat_2);

printf("Please enter longitudinal co-ordinates for final destination:\n");
read_GPS(起long_2,&min_long_2,&sec_long_2,s4);
dec_deg_4 = convert_DD(起long_2,&min_long_2,&sec_long_2);
rad_long_2 = calc_SphereCoord_long(s4, &dec_deg_4);
theta_long_2 = deg2rad(&rad_long_2);
calc_3DCoord(&phi_lat_2, &theta_long_2);

printf("Degrees:%f \n Minutes: %f \n Seconds:%f \n Direction:%s\n", deg_lat_1,
min_lat_1,sec_lat_1, s1);
printf("%f %f %f %s\n", deg_long_1, min_long_1, sec_long_1,s2);
printf("%f %f %f %s\n", deg_lat_2, min_lat_2, sec_lat_2, s3);
printf("%f %f %f %s\n", deg_long_2, min_long_2, sec_long_2,s4);

printf("%c", getchar());
return(0);
}

void read_GPS(float *degrees,float *minutes,float *seconds,char *direction)
{
scanf("%f%f%f%s", degrees, minutes, seconds, direction);
return;
}

float convert_DD(float *degrees, float *minutes, float *seconds)
{
float dec_deg,totalmins;

totalmins = *minutes + (*seconds / 60);
dec_deg = (totalmins /60) + *degrees;
printf("The decimal degree is %f", dec_deg);
printf("%c", getchar());
return(dec_deg);

}

float calc_SphereCoord_lat(char *direction, float *dec_deg)
{
int temp_1;
float phi;
char s5[] = "North";
temp_1 = strcasecmp(direction,s5);
if (temp_1 == 0)
phi = 90 - *dec_deg;
else
phi = 90 + *dec_deg;
printf("The spherical co-ordinate phi is: %f\n", phi);

return(phi);
}

float calc_SphereCoord_long(char *direction, float *dec_deg)
{
int temp;
float theta;
char s6[] = "East";
temp = strcasecmp(direction,s6);
if (temp == 0)
theta = *dec_deg;
else
theta = (-*dec_deg);
printf("The spherical co-ordinate theta is: %f\n", theta);
return(theta);
}

float deg2rad(float *dec_deg)
{
float radians;
radians = (*dec_deg * 2 * PI) / 360;
printf("%f as radians is: %f\n", *dec_deg, radians);
return(radians);
}

float calc_3DCoord(float *phi, float *theta)
{
float temp_1, temp_2, temp_3;
temp_1 = (RHO * (sin(*phi)) * (cos(*theta)));
temp_2 = (RHO * (sin(*phi)) * (sin(*theta)));
temp_3 = (RHO * (cos(*phi)));
printf("The cartesian co-ordinates are: %f %f %f\n", temp_1, temp_2, temp_3);
return(0);
}
 
Old 11-27-2003, 05:22 AM   #8
CatSC
Member
 
Registered: Oct 2003
Location: New Zealand, Wellington
Distribution: Red Hat 9, Gentoo 1.4, Vector 4.0
Posts: 74

Original Poster
Rep: Reputation: 15
2 Everyone: I think it will be better for me to start my own project
http://www.linuxquestions.org/questi...hreadid=120346

2 john23: I think I can help you with it. But can you explain what exetly should it calculate
and what's wrong with output?
 
Old 11-27-2003, 06:59 PM   #9
john23
LQ Newbie
 
Registered: Nov 2003
Posts: 13

Rep: Reputation: 0
Can i please get help with the above program to calculate the surface distance using the function straight_D and surface_D. The straight distance can be calculated by the formula,

d=sqrt((x2-x1)^2+ (y2-y1)^2+(z2-z1)^2)

The surface distance can be calculated by the straight line distance above:

surface_distance= 2sin(straight_distance/2)

Thanks You to anyone who can help, i want to include this in my program to calculate the surface distance!
 
Old 11-28-2003, 11:57 AM   #10
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
John23 you have already posted your question in a separate thread.

http://www.linuxquestions.org/questi...666#post623666

Please refrain from doing this again in the future.

Gary
 
Old 11-28-2003, 01:43 PM   #11
ugenn
Member
 
Registered: Apr 2002
Posts: 549

Rep: Reputation: 30
Quote:
Originally posted by nowonmai
That's really up to you to decide. Just because something is free software doesn't necessarily mean it shouldn't have a target market. I'm sure the last thing the world needs is 'yet another image convertor', but I'd give my left ball for a better installation/setup tool for debian.
funny u mentioned image convertors. there aren't too many good command-line ones around. probably the best i've come across is netpbm.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ipod offer siku General 6 04-14-2005 02:55 PM
Please offer assistance mr2324jgf Linux - Networking 1 02-22-2004 02:01 PM
GPL, What does it offer? gdbugger Linux - General 1 03-14-2003 06:09 AM
busines offer dmyster Linux - General 0 02-16-2003 09:27 PM
An offer you shouldn't refuse! taz.devil Linux - General 0 11-14-2001 11:20 PM


All times are GMT -5. The time now is 09:23 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration