Author Topic: Random talk thread: It just keeps happening  (Read 2043742 times)

0 Members and 11 Guests are viewing this topic.

Brehvolution

  • Until at last, I threw down my enemy and smote his ruin upon the mountainside.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3660 on: September 13, 2010, 09:19:45 AM »
I'm not gonna fuck with drew. You see how many knives he buys?
If I was bussing tables at that age, I'd wanna cut stuff too. But I commend drew on sucking up his pride and earning some scratch.
©ZH

tiesto

  • ルカルカ★ナイトフィーバー
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3661 on: September 13, 2010, 11:29:12 AM »
I can't begin to tell you how happy I am that dubstep is being played at the VMAs right now.  It just further proves how terrible it is

Wait, first deadmau5 shows up and now they are playing dubstep? That's pretty crazy...

There's some decent dubstep out there, it's not all that Rusko-style WOBBLE WOBBLE rubbish.
^_^

TakingBackSunday

  • Banana Grabber
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3662 on: September 13, 2010, 11:32:15 AM »
it certainly sounded a lot like that, though
püp

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3663 on: September 13, 2010, 12:22:51 PM »
morning classes :fbm
010

Madrun Badrun

  • twin-anused mascot
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3664 on: September 13, 2010, 12:28:32 PM »
O man my operating systems class is going to be a lot of work.
NtGay

Diunx

  • Humble motherfucker with a big-ass dick
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3665 on: September 13, 2010, 01:37:48 PM »
So my internet isn't working and since I don't feel like spending 40 minutes with on the phone with my provider I decided to check if any of my neighbors have an unsecured network, found a really fast one, I'm guessing that it belongs to someone on the new apartment building next to this one since it wasn't there two months ago.
Drunk

bork

  • おっぱいは命、尻は故郷
  • Global Moderator
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3666 on: September 13, 2010, 04:53:10 PM »
Over two years after being done on the JET program, I finally got my pension refund from the Japanese government.  665,600 yen for the pension and then I can file for the 166,400 yen that was taken out for income taxes.  That's about $9,889 total...not too shabby!
ど助平

Barry Egan

  • The neurotic is nailed to the cross of his fiction.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3667 on: September 13, 2010, 05:55:48 PM »
first year in like 15 years where I haven't had to purchase school supplies in September.  :rock

Brehvolution

  • Until at last, I threw down my enemy and smote his ruin upon the mountainside.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3668 on: September 13, 2010, 06:43:50 PM »
My son's first day of pre-k was today. $500 a month in child care back in mah pocket. :pimp
©ZH

drew

  • sy
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3669 on: September 13, 2010, 06:44:40 PM »
today i washed more dishes in four hours than i have in my life, literally

Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3670 on: September 14, 2010, 03:07:00 PM »
Lowe's is now on my shit list. We had to special order a back flush toilet (we don't have enough of a slope in the basement for a regular toilet) since no one actually carries them in stock. The tank arrived broken, so we've been waiting forever for the new one to come in. Some guy from the warehouse called the other day saying the new one was in, and we opened it last night... it's the same broken tank. THEY NEVER REORDERED A NEW TANK LIKE THEY SAID THEY WERE GOING TO OVER A MONTH AGO. I actually spoke to a guy who worked there who told me how he had called American Standard (manufacturer) and FedEx to see where the new tank was, and how it was on it's way. He made the whole thing up. Now everyone at Lowe's is playing dumb and they're not doing anything to fix the situation.

The bathroom is completely done except for the toilet. You can take a shower and wash your hands, but no toilet. :maf

My son's first day of pre-k was today.

Yeah! :rock
« Last Edit: September 14, 2010, 03:11:47 PM by Mr. Gundam »
野球

Eric P

  • I DESERVE the gold. I will GET the gold!
  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3671 on: September 14, 2010, 03:34:19 PM »
Quote
You can take a shower and wash your hands, but no toilet.

if the shower has a drain, i'd say you're finished
Tonya

Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3672 on: September 14, 2010, 03:36:17 PM »
Quote
You can take a shower and wash your hands, but no toilet.

if the shower has a drain, i'd say you're finished

I suggested that to my wife last night. The look on her face was priceless.
野球

Diunx

  • Humble motherfucker with a big-ass dick
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3673 on: September 14, 2010, 03:52:24 PM »
Is all tubes anyway.
Drunk

Positive Touch

  • Woo Papa
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3674 on: September 14, 2010, 04:28:47 PM »
morning classes :fbm

evening classes + a full time job :fbm

might actually kill myself
pcp

demi

  • cooler than willco
  • Administrator
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3675 on: September 14, 2010, 04:41:01 PM »
Today I got a semi erection from the dentist shoving his fingers in my mouth

Anyone else get this?
fat

MyNameIsMethodis

  • QUIT
  • Ebola Carrier
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3676 on: September 14, 2010, 08:55:59 PM »
when does evilbore secret santa start i need to make sure im not banned for it and can actually participate for once (i've been banned for everyone since i joined here in 2007!)
USA

Barry Egan

  • The neurotic is nailed to the cross of his fiction.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3677 on: September 14, 2010, 09:36:17 PM »
no one would want your shit gifts. 

MyNameIsMethodis

  • QUIT
  • Ebola Carrier
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3678 on: September 14, 2010, 09:36:37 PM »
i give great gifts and wouldnt the draw be sending me shit gifts
USA

MyNameIsMethodis

  • QUIT
  • Ebola Carrier
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3679 on: September 14, 2010, 10:19:41 PM »
why you gotta be such a jerk i just want to be a member of the community  :'(
USA

Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3680 on: September 14, 2010, 11:41:13 PM »
when does evilbore secret santa start i need to make sure im not banned for it and can actually participate for once (i've been banned for everyone since i joined here in 2007!)

I'll start it sometime in October.
野球

Brehvolution

  • Until at last, I threw down my enemy and smote his ruin upon the mountainside.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3681 on: September 14, 2010, 11:55:32 PM »
I sure as fuck ain't shipping to Poland this time.
©ZH

Diunx

  • Humble motherfucker with a big-ass dick
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3682 on: September 15, 2010, 12:01:04 AM »
I want to participate but I have no idea how much shipping to Europe or the Middle East would cost me.
Drunk

Fresh Prince

  • a one-eyed cat peepin' in a seafood store
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3683 on: September 15, 2010, 12:15:22 AM »
I sure as fuck ain't shipping to Poland this time.
Where is borys anyway?
888

MyNameIsMethodis

  • QUIT
  • Ebola Carrier
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3684 on: September 15, 2010, 12:17:14 AM »
I want to participate but I have no idea how much shipping to Europe or the Middle East would cost me.

When i shipped to the us on a gaf candy swap it was like $25 for about 5 lbs.
USA

BlueTsunami

  • The Muffin Man
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3685 on: September 15, 2010, 02:16:48 AM »
Gonna enter some photos in a local contest from the local newspaper (photos of the city itself), here are some past ones I've dug up...

Union Station: http://farm5.static.flickr.com/4142/4874943178_19430415dd_b.jpg

Glass Building Illuminated: http://farm5.static.flickr.com/4071/4579312167_635fe3f485_z.jpg

City Hall: http://farm5.static.flickr.com/4100/4882085012_ef833b716c_b.jpg

Glass Building with Clouds: http://imgur.com/GJeUU.jpg
:9

chronovore

  • relapsed dev
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3686 on: September 15, 2010, 07:43:11 AM »
Depends on where you are.

http://en.wikipedia.org/wiki/Fork_etiquette#Fork_etiquette

I recall hearing that the Germans used to identify American spies during WW2 by the way they'd switch hands while cutting their meal.

edit: oh dur, it's mentioned at the bottom of the article.

The chopstick section caught my eye...

Quote
Placing the chopsticks straightup into a bowl of food; this refers to death in Japanese culture

:rofl Thats fucking awesome
It's only done for bowls of rice left as offerings for the dead. If you do it in a restaurant it shows either ignorance or intense inconsideration.

O man there are a lot of hot first year girls in my Linguistics class.  If I can't get one of them, I'm offically going gay.
Father Mike surrounded by hot girls in a class about clear communication -- this has the makings of a sitcom.

Today I got a semi erection from the dentist shoving his fingers in my mouth

Anyone else get this?
Only your dentist.

Mupepe

  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3687 on: September 15, 2010, 10:09:07 AM »
Gonna enter some photos in a local contest from the local newspaper (photos of the city itself), here are some past ones I've dug up...

Union Station: http://farm5.static.flickr.com/4142/4874943178_19430415dd_b.jpg

Glass Building Illuminated: http://farm5.static.flickr.com/4071/4579312167_635fe3f485_z.jpg

City Hall: http://farm5.static.flickr.com/4100/4882085012_ef833b716c_b.jpg

Glass Building with Clouds: http://imgur.com/GJeUU.jpg
Damn those are really fucking good.

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3688 on: September 15, 2010, 12:06:19 PM »
Yesterday at work we ran into some problems with Pandora. I know we purchased the year subscription thing, but we got an error saying we ran out of our 40 free hours. One of the hygienists put on a CD she happened to have in her purse - some type of opera bullshit no one liked. So I said fuck it and quickly put together a youtube playlist, turned off her CD, and put my stuff on.

Few minutes later I heard the office manager talking to the hygienist saying "wow he went on the internet and downloaded some songs, and put them on a list that plays continually." After work two of the hygienists came up to me and asked if I could look at their computers and fix some connection/spyware/etc problems "since you seem to know a lot about computers right *giggle*"  :-\

Why don't I ever get it: if you know anything about computers, don't tell anyone

010

Mupepe

  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3689 on: September 15, 2010, 12:10:53 PM »
just say "oh i wouldn't know anything about that.  i learned this from someone else"  i started using that

MyNameIsMethodis

  • QUIT
  • Ebola Carrier
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3690 on: September 15, 2010, 12:15:17 PM »
Yesterday at work we ran into some problems with Pandora. I know we purchased the year subscription thing, but we got an error saying we ran out of our 40 free hours. One of the hygienists put on a CD she happened to have in her purse - some type of opera bullshit no one liked. So I said fuck it and quickly put together a youtube playlist, turned off her CD, and put my stuff on.

Few minutes later I heard the office manager talking to the hygienist saying "wow he went on the internet and downloaded some songs, and put them on a list that plays continually." After work two of the hygienists came up to me and asked if I could look at their computers and fix some connection/spyware/etc problems "since you seem to know a lot about computers right *giggle*"  :-\

Why don't I ever get it: if you know anything about computers, don't tell anyone



if they're hot and they invite you to look at their computer what they really mean is look at their vagina nice job
USA

BlueTsunami

  • The Muffin Man
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3691 on: September 15, 2010, 12:20:11 PM »
Why don't I ever get it: if you know anything about computers, don't tell anyone

The connection/spyware/etc rabbit hole is a dangerous one, don't fall down it! You just may end up going above and beyond the call of duty since its a pain in the ass to back out when people at work people think you're completely tied to the job because you "took a shot at it", no, you gotta fix that shit!
:9

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3692 on: September 15, 2010, 12:22:13 PM »
And then when you reinstall they're like "I lost my documents" and you're like god dammit I TOLD YOU that would happen, and asked if you wanted me to put them on a jump drive but you said "no thanks I don't need my car worked on" :punch

just say "oh i wouldn't know anything about that.  i learned this from someone else"  i started using that

I'm too vain to say that  :lol
010

demi

  • cooler than willco
  • Administrator
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3693 on: September 15, 2010, 12:23:44 PM »
I charge people $50 to clean their PCs. Run MalwareBytes/SAS, get latest updates... done. Free vidya game
fat

Mupepe

  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3694 on: September 15, 2010, 12:41:00 PM »
And then when you reinstall they're like "I lost my documents" and you're like god dammit I TOLD YOU that would happen, and asked if you wanted me to put them on a jump drive but you said "no thanks I don't need my car worked on" :punch

just say "oh i wouldn't know anything about that.  i learned this from someone else"  i started using that

I'm too vain to say that  :lol
:lol

And yep, no one understands that when I say it will erase everything, it means all your shit is gone!  For older men, I started saying "firebomb" and they understand that better.  I've fixed my in laws computers way too many times by now.  I've stopped doing it.  I've told them to quit using fucking Limewire too.  But they're so insistent.  I was at a cousin's house a few weeks back and the little girl starts installing limewire after I found like 144 viruses on the PC and I tell her "you install that shit and I'm never fixing your PC again."  Fucking ridiculous.  They refuse to learn torrents or newsgroups so I told them they can either start buying their music or buying new pc's.

Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3695 on: September 15, 2010, 07:08:02 PM »

Framed in the basement! :rock
野球

CajoleJuice

  • kill me
  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3696 on: September 15, 2010, 07:09:20 PM »
That is some hot shit.
AMC

Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3697 on: September 15, 2010, 07:39:21 PM »


Bathroom is all done!*

spoiler (click to show/hide)
Except for the toilet...
[close]
野球

Brehvolution

  • Until at last, I threw down my enemy and smote his ruin upon the mountainside.
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3698 on: September 15, 2010, 08:06:22 PM »
Awesome job dude! :rock
©ZH

BlueTsunami

  • The Muffin Man
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3699 on: September 15, 2010, 08:39:47 PM »
Damn, that looks professionally done
:9

drew

  • sy
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3700 on: September 15, 2010, 09:40:21 PM »
Today I got a semi erection from the dentist shoving his fingers in my mouth

Anyone else get this?

no, but i pop one when i see the gas mask come out

Mupepe

  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3701 on: September 16, 2010, 02:25:17 PM »
I started growing a beard and mustache about 3 weeks ago.  I was fine with the way it felt until today.  it's just bugging the fuck out of me today.  It's fully in and has been for about a week but fuck it's driving me nuts today.

Cindi Mayweather

  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3702 on: September 16, 2010, 06:10:42 PM »
Man, my dad had his prostate checked out because he said he was hurting. I call him today to see how the appointment went and he says everything is fine but I sense that things aren't fine. I hope I'm overthinking this.
weed

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3703 on: September 16, 2010, 09:04:21 PM »
I hope everything's ok  :-\
010

Madrun Badrun

  • twin-anused mascot
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3704 on: September 17, 2010, 12:58:36 AM »
Such a bad day
- spent 12 hours at school today, 2 hours in class, the rest working on an assignment.
- I had already put in five hours into this assignment already.  It's due tomorrow at 9am and was given to us only Monday.
- All the computers in the compsci lab were reserved today, and for the majority of the week for either tutorials or for first years to take a math placement test.
- the entire class was in the lab after 6 trying to get this done.  That's about 60 people.
- We spent 4 hours trying to compile something on a windows machine and at 9pm the marker for the class actually had to come to school to help and it turns out that we can't actually do the assignment because we don't have the right permissions on windows. 
-Because there were so many of use we chocked the server that our svn repositories are on.  It took 30 mins to get a svn log.  That's a 5kb textfile.
-The prof kept posting jerky comments on the message board blaming us for this problem.
NtGay

BlueTsunami

  • The Muffin Man
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3705 on: September 17, 2010, 01:20:20 AM »
-The prof kept posting jerky comments on the message board blaming us for this problem.

What a douche. Sounds like the lab and the area that the assignment took place was a huge hindrance to you guys. He's probably trying to save face for not anticipating the problems ya'll ran into.
:9

Madrun Badrun

  • twin-anused mascot
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3706 on: September 17, 2010, 01:30:27 AM »
It was.  He made comments like "It's a shame that I'm only first hearing about this problem 13 hours before the assignment is due", well we couldn't fucking get into the windows lab until 6pm to test it on the windows machine.  And then after he he found out about that he said "Well don't worry about it; this part of the assignment isn't worth a lot of marks"

I also forgot to mention that this is PHASE 1 of 3 and I've already put 15 hours into it.

The class is Operating Systems and from what I understand by the end of the class we end up building most of a simple OS from scratch. 
NtGay

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3707 on: September 17, 2010, 01:31:57 AM »
Hadn't eaten all day, so I decided to make some black eyed peas and rice. Now it's 1:30am and I'm eatin' :bow
010

Madrun Badrun

  • twin-anused mascot
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3708 on: September 17, 2010, 10:35:17 AM »
This is the assignment:

Out: September 10, 2010
Due:
Phase 1 Milestone: 9:00AM, September 17, 2010
Phase 2 Milestone: 9:00AM, September 24, 2010
Complete Assignment: 9:00PM, October 3, 2010 
 

This assignment is designed to get you  into the swing of things with respect to C and UNIX/Linux systems programming. Be sure that all your code compiles on the school's computers using the gcc compiler in Linux as appropriate. All parts of this assignment may be done in teams.
TOTAL MARKS: 150
Phased Hand-in
The first 2 phases have additional marks that make the total number of marks equal to 150.
Part A: Parents, Children and Threads (45 marks)
PART A.1. (15 marks) Write a WINDOWS program that creates multiple threads that each perform a specific task until a deadline. The number of child threads (M) and the deadline (D) are to be command-line parameters. Each thread does the same task. The task is given below and requires a third command-line parameter (N). An example invocation of this program is the following: computeSquares 4 2000000 3. This creates 4 child threads, and has each thread compute Square(1) to Square(2000000) in a loop with a deadline of 3 seconds from the time the parent thread starts running.

    * The application should have a parent thread create M child threads.
      Each child then executes a procedure to calculate (but not print out) the squares of the first N positive integers (i.e., 12, 22, 32,42, 52) (where N is also given as a command-line argument).  The restriction is that procedure Square() cannot use any multiplication operations (I want a simple operation that will take a long time to complete).  Instead, use the following algorithm:

int Square(N)
{
       if (N == 0) return (0);
       return (Square (N-1) + N + N - 1);
}

            The second command-line parameter is the deadline for the program in seconds (D). If child threads are not done in this time, then the program must exit. This is achieved by having the parent thread check the deadline on each execution of its main loop. If the deadline has passed, it sets a global variable named something like keepRunning that the parent can set and the children can read to have the value FALSE. The parent should do nothing else but sleep until the deadline occurs. The simplest way to do this is to use the system call Sleep.

            You may need to have N be a very large number and D to be a fairly small number to get interesting results from this operation.
            Upon exit, Each childshould print the following:

          o elapsed real time since the child began.
          o number of invocations of the Square() procedure by this thread.

You will need to become familiar with the following Win32 System calls: CreateThread(), GetSystemTime(), and Sleep().

PART A.2. (10 marks) Repeat part A.1 in UBC pthreads.

    *     The difference here is the threads calls syntax and the process communication. If the time expires before children threads are finished, the parent should Kill() the children threads, instead of having them check the shared flag. In this case, the parent would be responsible for printing out the statistics for each child that had not finished executing when the deadline occurred.

PART A.3. (15 marks)  Repeat part A.1 with UNIX processes. The way I want you to do this will require the use of signals and signal handlers. When the time expires, the children should be signaled that this has happened and they should catch the signal and exit appropriately. You must write a signal handler to handle the SIGALRM signal.  You will need to create an additional process, the timer. When the timer determines that the time to execute the program has expired, the timer process should send a SIGALRM to each child and the parent, telling them to stop. When the signal is caught by the child, it should print out the values calculated so far and return an error status to the parent. If the child terminates normally before the timer expires, it should print out its values, state that it finished normally and return a success status to the parent. The parent process should be in a waitloop, waiting for each child to finish. If each child finishes, then it should kill the timer and then terminate normally.

PART A.4. (5 marks) Repeat part A.2 in Posix threads.

    *     The difference here is the syntax of the threads operations.

For all of these parts, reuse as much code as possible. In particular, the calculation of Squares should all be in one C file, and be able to be linked in with any of the parts.
Part B: Shell script (5 marks)
Write an interactive shell script that executes Parts A.1, A.2, A.3 or A.4 according to the user's instructions. The shell script should read the appropriate values from the user and then invoke the corresponding program with the corresponding command line arguments. The structure you use for this part of the program is up to you, but you must do this in a loop until the user wishes to quit. Obviously, part A.1 only works on Windows, so there should be a check to see that the user is on the proper architecture for the program to be run.
Part C: Lists  (65 marks)

Lists are composed of elements called nodes (NODE data type). Each node is able to hold one item. An item is any C data type that can be pointed to - so your node structure should have a (void *) field in it to reference the item held by that node. For the purposes of this assignment, though, you may create several lists WHERE EACH LIST HAS A HOMOGENOUS DATA TYPE.

You must create the user-defined type LIST, implement functions to manipulate lists, and compile the code to be used as a library. An instance of type LIST refers to a particular list and will be an argument to most of your list manipulation routines.

You are to implement the following list manipulation routines:

   1. LIST *ListCreate() makes a new, empty list, and returns its reference on success. Returns a NULL pointer on failure.
   2. int ListCount(list) returns the number of items in list.
   3. void *ListFirst(list) returns a pointer to the first item in list and makes the first item the current item.
   4. void *ListLast(list) returns a pointer to the last item in list and makes the last item the current one.
   5. void *ListNext(list) advances list's current item by one, and returns a pointer to the new current item. If this operation attempts to advances the current item beyond the end of the list, a NULL pointer is returned.
   6. void *ListPrev(list) backs up list's current item by one, and returns a pointer to the new current item. If this operation attempts to back up the current item beyond the start of the list, a NULL pointer is returned.
   7. void *ListCurr(list) returns a pointer to the current item in list.
   8. int ListAdd(list, item) adds the new item to list directly after the current item, and makes item the current item. If the current pointer is at the end of the list, the item is added at the end. Returns 0 on success, -1 on failure.
   9. int ListInsert(list, item) adds item to list directly before the current item, and makes the new item the current one. If the current pointer is at the start of the list, the item is added at the start.  Returns 0 on success, -1 on failure.
  10. int ListAppend(list, item) adds item to the end of list, and makes the new item the current one. Returns 0 on success, -1 on failure.
  11. int ListPrepend(list, item) adds item to the front of list, and makes the new item the current one. Returns 0 on success, -1 on failure.
  12. void *ListRemove(list) Return current item and take it out of list. Make the next item the current one.
  13. void ListConcat(list1, list2) adds list2 to the end of list1. The current pointer is set to the current pointer of list1. List2 no longer exists after the operation.
  14. void ListFree(list, itemFree) delete list. itemFree is a pointer to a routine that frees an item. It should be invoked (within ListFree) as: (*itemFree)(itemToBeFreed);
  15. void *ListTrim(list) Return last item and take it out of list. Make the new last item the current one.
  16. void *ListSearch(list, comparator, comparisonArg) searches list starting at the current item until the end is reached or a match is found. In this context, a match is determined by the comparator parameter. This parameter is a pointer to a routine that takes as its first argument an item pointer, and as its second argument comparisonArg. Comparator returns 0 if the item and comparisonArg don't match (i.e. didn't find it), or 1 if they do (i.e. found it). Exactly what constitutes a match is up to the implementor of comparator. If a match is found, the current pointer is left at the matched item and the pointer to that item is returned. If no match is found, the current pointer is left at the end of the list and a NULL pointer is returned.

Take special note of the fact that many of these routines are mirrors of each other. Prepend is almost the same as append, so code and debug in stages, so that you know you have parts of the program working correctly from day one of starting to work on this assignment. Do not leave it until the last days.
Avoid traversing or searching the list whenever possible. It is possible to avoid traversing/searching in every function, except of course, ListSearch().

Implementation Hints/Requirements
Your code for the solution must consist of six files: list.h, list_adders.c, list_movers.c,  list_removers.c, mytestlist.c and Makefile. The header file contains structure definitions and function prototypes, while the three source code files contain function definitions and variable declarations. The test program is the only file that should have a main() function, and it should call the list library routines to create, display, and manipulate the lists. As mentioned in the next paragraph, we will provide a test program to give you some clue as to the kind of testing you could do for the library. Implement in stages, putting the code for each type of list operation in the appropriate source file. ListCurr() and ListCount() should go in list_movers.c.

Since the list item is an arbitrary type, your library CANNOT KNOW how to display it, how to search for it, or how to remove it. These details must all be specified in your test program and communicated to your library via function pointers.

Part of your mark will be determined by the rigorous nature of your testing methodology as well as the implementation of your list libraries.
Compiling and Testing
You must create a Makefile that compiles your list implementation as a library archive (i.e .a file). You must include, in your makefile, the facilty to compile a test program (to be provided by the marker) as your application. The file to do the list testing MUST be named testlist.c. Where the assignment requires test files and test results from you, you are free to name the *executable* for your tests in any reasonable way.
OPTIONAL EXTRA CREDIT PORTION (20 marks)
Memory Allocation Principles. In this version of the assignment, you are to implement the list memory structure so that there are a variable number of list nodes and list headers. This does not mean that you allocate them on-demand. You shall have compile-time constants MIN_LISTS and MIN_NODES, which specify the minimum amount of memory (array size) to allocate for each of these data structures in ONE malloc for each data structure. Keep track of which nodes and lists are available by using a free list. If obtaining a new node or a new list fails, you are to double the amount of memory allocated for whichever resource has filled up (see the man page for realloc()). If you determine that less than half the allocated memory is being used for lists or nodes, you must divide the amount of memory by 2 and copy the used nodes or lists into the new space. Of course, you never go below MIN_LISTS or MIN_NODES. This is the way Java implements arrays and vectors, and the way current versions of the LINUX kernel handle the task_struct array.

Hand In Instructions
Phase 1 deliverables (15 marks: 5 for part A, 5 for part B and 5 for part C):

    * design documentation for Part A and Part C. These should be 2 UNIX text files named PartA.design.txt and PartC.design.txt. This should describe your design decisions and ideas of how to progress with the rest of the assignment.
    * Completed shell script for Part B.
    * Skeleton program that has all the procedures and the interface between the modules. No part of the program needs to do anything except printout the following statement "Got to procedure X", where X is the name of the procedure executing.
    * Makefile that compiles all Part A programs and Part C. For Part A, the name of the executables do not matter, as they will be invoked by your shell script in Part B. Your shell script shall be named parentSquares. For Part C, you must make a library named liblist.a, and compile it with a test program called testlist.c to create an executable called testlist.
    * Take care to ensure that you do not try and compile Linux code on Windows nor Windows code on Linux. This can be done by if statements in the makefile. SVN log.


Phase 2 deliverables (20 marks: 10 for part A, and 10 for part C):

    * Updated design documentation.
    * Test plan for all of Part A and Part C. These should be 2 UNIX text files named PartA.testplan.txt and PartC.testplan.txt.
    * Working prototype program
          o For Part A, you must have Parts A1 and A2 working.
          o For Part C, you must implement adding nodes to lists, and the increasing of memory size if memory fills up (if you are doing the extra credit).
    * Test results for features implemented. These are to be in PartA.testresults.txt and PartC.testresults.txt
    * Makefile to allow the marking script to compile your code.
    * SVN log

Final version deliverables (115 marks: 45 for part A, 5 for Part B, and 65 for part C):

    * Design documentation
    * Working source code
    * Test results
    * Final versions of Makefiles
    * SVN log.
    * Bonus features document. Bonus marks (10 marks) will be given for identifying what features you think should be added next to either Part A or Part C. Further bonus marks (10 marks) will be given if successful implementation of these bonus features is achieved.

What to hand in in each phase

   1. Create a directory for this assignment.
   2. Place in this directory your assignment including the following:
          * your source files
          * any separate documentation files. For this assignment, design documentation, a test plan, testing verification and other documents as required for each phase.
          * a makefile that compiles the  executable files required for this assignment.
          * SVN log showing the development history for the assignment.
   3. The following must NOT be in the directory:
          * any .o files or any executable files
          * any files having nothing to do with this assignment
          * any subdirectories
   4. Now you are ready to hand in your assignment. To do so you are going to make a tar file, and upload it to WebCT's assignment hand-in. The TA will then untar the assignment and then run  'gmake'  on your set of files to generate the executable files to evaluate your assignment. Please do not gzip the file. I've had problems with different students using different versions of the compression program and it just takes too much TA time.
   5. Hand in only one complete solution per team. One of your team members should hand in this part and the other hands in a file (called partner.txt) that says, "I worked with 'X'."
   6. That's it - you are done.
NtGay

brob

  • 8 diagram pole rider
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3709 on: September 17, 2010, 03:43:19 PM »
cus it's awesome?

drew

  • sy
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3710 on: September 17, 2010, 03:58:56 PM »
A fucking fighter jet just did a low pass over my town and scared the fuck out of me.  Why would it do that?

because all jet pilots are pricks

especially the national guard here, a couple months ago i was out smoking at like 1 am and one of them comes coasting out of nowhere with his spotlight on and hovers within a few hundred feet right above our house, he was so low i could make out the panel lines

Bacchus7

  • Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3711 on: September 17, 2010, 05:44:31 PM »
I'd be a prick if I were a jet pilot.
DTF

drew

  • sy
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3712 on: September 17, 2010, 06:04:22 PM »


heres a depiction of some retired usaf pilots going out for a night on the town
« Last Edit: September 17, 2010, 06:05:53 PM by drew »

Fresh Prince

  • a one-eyed cat peepin' in a seafood store
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3713 on: September 17, 2010, 10:14:23 PM »
top gun
888

Cindi Mayweather

  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3714 on: September 18, 2010, 06:47:42 PM »
talking to wrath on the phone  8)
weed

Diunx

  • Humble motherfucker with a big-ass dick
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3715 on: September 18, 2010, 06:54:49 PM »
Are you guys talking about me? :-*
Drunk

Madrun Badrun

  • twin-anused mascot
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3716 on: September 18, 2010, 10:33:34 PM »
New OP episode was good.
NtGay

Phoenix Dark

  • I got no game it's just some bitches understand my story
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3717 on: September 18, 2010, 10:51:06 PM »
St Elsewhere wasn't bad
010

Olivia Wilde Homo

  • Proud Kinkshamer
  • Senior Member
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3718 on: September 19, 2010, 08:10:07 PM »
Another weekend well wasted.

Probably read about 400 pages of communist history this weekend.  It always seems like in the fall, I get the urge to re-read them.  I'd still like to read more about Afrocommunism but there's next to no information about it.

Also, I broke up with my girlfriend so I jacked off 10x
🍆🍆

CajoleJuice

  • kill me
  • Icon
Re: New Random Talk Thread: Let the Bottom-Feeding Commence!
« Reply #3719 on: September 19, 2010, 08:11:18 PM »
pics plz
AMC