topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Sunday April 28, 2024, 7:42 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - DRCross [ switch to compact view ]

Pages: [1]
1
Brief: Implement a program to fill out details and print them onto a paper document.

This program is very simple. I work in the horse racing industry in Ireland. After every horse race I need to fill out a form. This form has basic information to be filled in. If a program could be written to fill in most of the data it would save me having to write it out manually.

 These basic fields are:
1. The name of our company (never changes)
2. Our permit number (never changes)
3 The racetrack we are currently at (one of 32 racetracks)
4. The date in ddmmyy order.
5. The current race (starts from 1 and finishes with either 7 or 8)

The program should save some config data into a config file.

This config file should store:

The company name, permit number, the date, the racecourse and the number of races.
This config file should be saved after every use so the user can automatically load the same data the next year the same race meeting is on.

Then the user should be able to press print and the printer should print the appropriate data into the corresponding blank areas on the form for the 7 or 8 races. (This leaves me to fill out the last blank, depending on the race result, and sign my signature to it before submitting it)


I cannot imagine this program would take very long to do, it is an interesting basic project, nothing too complicated and a bit of fun. If you would like to attempt this project send me a mail so I can go through the details with you.

As soon as I get access to a scanner I will scan a copy of the form that has to be filled and submit it to the forum,

If you are interested, drop me a line!

Regards,

Dylan


2
Good stuff mate, thanks a lot. I hadnt figured you'd do it in c++. It was then I realised I had posted my request on the wrong site, it was meant to go to a forum on autohotkey.com. But how and ever, I like your solution and I know a tiny bit about c++. These are some small issues that remain. Please excuse my stupidity but how would I set the output in the parsed.txt to equal:

edge:{source: "UserName" target: "FriendName1"}


This probably means setting the Username to a variable for the duration of the time it takes to process one page. The Username is always the first name on the page. Below is a copy of one page of the format that the source.txt will look like. And will probably help you understand what Im talking about.

Spoiler
bebo   
          bobbydays    Search    My Account    Sign Out         
   Homepage   My Friends   Add Friends   Mail   School   College   
   All   White Board   Photos   Blog      Friends      Quiz   Comments

Dylan Cross <dylan.cross>
Page 1 of 4     1  2  3  4  Next >>>

   
Geraldine O'Connell <gerbeenie>
Female, 21
Hometown Rathfarnham
 
Send a Message »
   
At th mo im in college, 3rd yr Clinical Measurement, DIT Kevin St. On placement now in gross hospitals! saggy boobs. Fellow Clins will know what I'm talkin bout!

   
Laura Boland <laura-boland>
Female, 21
 
 
Send a Message »
   

   
Will Conlon <willconlon>
Male
Hometown Kildare (in general) and occasionally Galway
 
Send a Message »
   
Jesus died and rose from the dead in 3 days. It took Jack Bauer less than an hour. And he's done it twice.

   
Dave . <davkavo2>
Male, 21
Hometown Clonee, Meath
 
Send a Message »
   
Here i am

   
Sarah Dalton <sadge1>
Female, 20
Hometown kildare
 
Send a Message »
   
.....yes sir i can hardcore!....

   
Greaney Clare <greaneyc>
Female, 21
Hometown Ballygreaney ( and yes it is a place)
 
Send a Message »
   
Only Known as Greaney to most, infact to most i dont even have a first name ( have yet to decide if that is a good thing, most famous people are only known by one name so i think ill go with its a...

   
Danilo Vukanic <mr-sassy-pants>
Male
 
 
Send a Message »
   
Jesus titty fuckin christ!

   
Eanna O'Shea <eannaoshea>
Male, 22
Hometown Baronstown West
 
Send a Message »
   
Here's a kiss! be thankful your gettin one, ya ug-o! Well, i'm fourth year of graphic design in Mountjoy square. Just finished thesis....woohoo. I love to travel, drink, listen to music, blah, sp...

   
Michele Macari <micstallion>
Male, 23
Hometown dunlaoghaire
 
Send a Message »
   

   
Niamh O d <niamhie21>
Female, 21
 
 
Send a Message »
   
im so not interesting, you should just leave my page right now. i said go. now. anyway you all know me, piss head student, bar worker, rent a secretary, student neurophysiologial technolgest (for...
Page 1 of 4     1  2  3  4  Next >>>

NOTE: Some of Dylan friends may not be listed above. If a members is not part of a School or College and has not selected to have an accessible homepage then they can be viewed by direct friends only.
            

HelpTermsPrivacySafety TipsTestimonialsContactAboutOur Blog   
©2006 Bebo.com, LLC
 

bebo10:152:1144437081149



You'll notice that the extra braces around the "next page" link can screw up the program. If you could sort this out it would be great, because this thing will be copying a few thousand pages and it would save me a lot of labour! If not its ok.

BTW My mapping (aiSee.com) needs two things to be defined for it to work. One is each node, in this case represents one person and the code is as follows:

node: { title: "Username"}
I have to have a copy defining every user name like above. But only once! Duplicates throw up errors!

The second thing the mapping s/ware needs is the target and source link, in this case if the two people are friends. This is the code format of the graph, and at this stage you know everything about my project!


graph:{

node: {title: "UserName1"} //Every UserName must be defined only once
node: {title: "UserName2"}
node: {title: "UserName3"}
node: {title: "UserName4"}

edge: {source:"UserName1" target "Username3"}  //Each link from one person to another
edge: {source:"UserName2" target "Username4"} // (Overlapping in this case doesnt matter)
edge: {source:"UserName2" target "Username1"}

}



I dont mean to annoy you with doing extra stuff, If you like doing this sort of stuff for the kicks and are interested in what I am doing, thats great. You will save me months of research! I'll paypal over the money right now as soon as I figure out how.


3
Hey all,

I've got an easy project I would like to get done but I'm having trouble implementing it. I'll donate $10 (negotiable) to whomever helps me.

There is a webpage (www.bebo.com if you know it) and I want to get friends names from my friends profiles from the page and stored into a text file. (Im going to use this data to create some graphs of showing friends connections from it. I have the graphing tools ready to go). The webpage has 10 friends per page and the friends name is in a format: <friendsname> so all the script has to do is to start at the top of the page, working its way down copying data between the < >'s and appending it to a file.

The text file should be something like this:

<UserName>          // The profile owners name. His friends are on the following lines.
<friendname1>
<friendname2>
<friendname3>      //   ...and so on....
         


easy huh?!

The way I was thinking of Implementing it is using find in firefox to search for "<" once it finds the first "<" it "control + right-arrows" until it finds the ">" and appends this to a file. It does this process 9 times and waits for the user to change to the next friends page.

If you are interested, there is a tiny bit more to that that could can help me out (very very basic formatting) with and the money's yours.

DC


Pages: [1]