Thread Tools
Old August 14, 2003, 22:45   #31
Neutrino
Settler
 
Neutrino's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: Jun 2002
Location: San Diego, CA, USA
Posts: 7
Quote:

pthread_cond_t cv_notfull = PTHREAD_COND_INITIALIZER;
pthread_cond_t cv_notempty = PTHREAD_COND_INITIALIZER;
pthread_cond_t cv_busfull = PTHREAD_COND_INITIALIZER;

pthread_mutex_t bus_access = PTHREAD_MUTEX_INITIALIZER;

void *cvpass(void *pass_id)
{
int *my_id = (int *) pass_id;
int trips = 0;
while (trips < T) {
while (pthread_mutex_trylock(&bus_access)) ;
while (pthread_cond_wait(&cv_notfull, &bus_access)) ; // wait for access
// cout<<*my_id<<" acquires lock\n";
cout<<"Passenger "<<*my_id<<" gets in\n";
id_queue.push_back(*my_id);
num_passengers++;
// cout<<"# passengers: "< if (num_passengers == C) { // signal when full
// sleep(1); // wait for bus to be ready to receive bus_full
// cout<<"Bus full, signaling bus_full\n";
pthread_cond_signal(&cv_busfull);
}
// pthread_mutex_unlock(&bus_access);
// cout<<*my_id<<" releases lock\n";

pthread_cond_wait(&cv_notempty, &bus_access);
if (on_bus(id_queue, *my_id))
{
id_queue.remove(*my_id);
cout<<"Passenger "<<*my_id<<" gets off\n";
num_passengers--;
// cout<<"# passengers: "< }
pthread_mutex_unlock(&bus_access);
trips++;
}
pthread_exit(NULL);
}
Neutrino is offline  
Old August 14, 2003, 22:51   #32
TCO
Apolytoners Hall of Fame
Emperor
 
TCO's Avatar
 
Local Time: 21:23
Local Date: November 1, 2010
Join Date: Mar 2006
Location: Richmond, VA
Posts: 8,057
nothing in there...
TCO is offline  
Old August 14, 2003, 22:55   #33
Imran Siddiqui
staff
Apolytoners Hall of FameAge of Nations TeamPolyCast Team
 
Imran Siddiqui's Avatar
 
Local Time: 03:23
Local Date: November 2, 2010
Join Date: Dec 1969
Location: on the corner of Peachtree and Peachtree
Posts: 30,698
I gots nothing either.. damn
__________________
“I give you a new commandment, that you love one another. Just as I have loved you, you also should love one another. By this everyone will know that you are my disciples, if you have love for one another.”
- John 13:34-35 (NRSV)
Imran Siddiqui is offline  
Old August 14, 2003, 23:02   #34
:) Smiley
Scenario League / Civ2-Creation
Emperor
 
:) Smiley's Avatar
 
Local Time: 00:23
Local Date: November 2, 2010
Join Date: Feb 2001
Location: hippieland, CA
Posts: 3,781
was working on a Civ2 scenario...
Attached Thumbnails:
Click image for larger version

Name:	temp.gif
Views:	146
Size:	3.8 KB
ID:	51491  
__________________
Visit First Cultural Industries
There are reasons why I believe mankind should live in cities and let nature reclaim all the villages with the exception of a few we keep on display as horrific reminders of rural life.-Starchild
Meat eating and the dominance and force projected over animals that is acompanies it is a gateway or parallel to other prejudiced beliefs such as classism, misogyny, and even racism. -General Ludd
:) Smiley is offline  
Old August 15, 2003, 05:28   #35
Sirotnikov
DiplomacyApolytoners Hall of FameCivilization III Democracy Game
Emperor
 
Sirotnikov's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Feb 2000
Posts: 7,138
Quote:
You want one page with a bunch of white space and a few easy to read tags?

Or you want a garbled WYSIWYG crap making reference to a bunch of CSS files.
Ted Striker commenting on what he thinks CSS is in another thread.
Sirotnikov is offline  
Old August 15, 2003, 05:40   #36
Spiffor
Civilization III Democracy GamePtWDG LegolandApolytoners Hall of Fame
 
Spiffor's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Nov 2001
Location: jihadding against Danish Feta
Posts: 6,182
Quote:
You can already do this indirectly, by making civ-specific tech trees. But you are right that real Civ-dependent improvements would be much better. It would allow, for example, "flavour improvements" much like "flavour units". For example, the Arabs could build Bazaars and Mosques instead of Cathedrals and Marketplaces, with the same effects.
An answer I wrote in the Civ3-Conquests forum, when I feared the server would crash (I copy my answers very often, for fear they get eaten by the server)
__________________
"I have been reading up on the universe and have come to the conclusion that the universe is a good thing." -- Dissident
"I never had the need to have a boner." -- Dissident
"I have never cut off my penis when I was upset over a girl." -- Dis
Spiffor is offline  
Old August 15, 2003, 05:44   #37
Wernazuma III
Spanish CiversCivilization III PBEMNationStates
Emperor
 
Wernazuma III's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Aug 2000
Posts: 4,512
Quote:
pad-zahr
OMG, that's really weird
__________________
"The world is too small in Vorarlberg". Austrian ex-vice-chancellor Hubert Gorbach in a letter to Alistar [sic] Darling, looking for a job...
"Let me break this down for you, fresh from algebra II. A 95% chance to win 5 times means a (95*5) chance to win = 475% chance to win." Wiglaf, Court jester or hayseed, you judge.
Wernazuma III is offline  
Old August 15, 2003, 05:48   #38
Nubclear
NationStatesCall to Power II Democracy GameInterSite Democracy Game: Apolyton TeamRise of Nations MultiplayerACDG The Human HiveNever Ending StoriesACDG The Free DronesACDG The Cybernetic ConsciousnessGalCiv Apolyton EmpireACDG3 SpartansC4DG Team Alpha CentauriansCiv4 SP Democracy GameDiplomacyAlpha Centauri PBEMCivilization IV PBEMAlpha Centauri Democracy GameACDG Peace
PolyCast Thread Necromancer
 
Nubclear's Avatar
 
Local Time: 07:23
Local Date: November 2, 2010
Join Date: Jul 2002
Location: We are all Asher now.
Posts: 1,437
Quote:
It was amazing I won. I was running against peace and prosperity and incumbency
Nubclear is offline  
Old August 15, 2003, 07:31   #39
SpencerH
Civilization III PBEMCivilization III MultiplayerBtS Tri-League
Emperor
 
SpencerH's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: Feb 2002
Location: Back in BAMA full time.
Posts: 4,502
Quote:
Isnt this the time of year when the parisians desert the city?
from the help me I'm going to paris thread
__________________
We need seperate human-only games for MP/PBEM that dont include the over-simplifications required to have a good AI
If any man be thirsty, let him come unto me and drink. Vampire 7:37
Just one old soldiers opinion. E Tenebris Lux. Pax quaeritur bello.
SpencerH is offline  
Old August 15, 2003, 10:51   #40
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 08:23
Local Date: November 2, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Quote:
There was in fact, very little sense of anything afterwarsd.
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old August 15, 2003, 11:09   #41
Asher
Apolytoners Hall of Fame
President of the OT
 
Asher's Avatar
 
Local Time: 01:23
Local Date: November 2, 2010
Join Date: Nov 1999
Location: Calgary, Alberta
Posts: 40,843
Quote:
CWnd* blah;
__________________
"I'll never doubt you again when it comes to hockey, [Prince] Asher." - Guynemer
Asher is offline  
Old August 15, 2003, 11:19   #42
DarthVeda
Emperor
 
DarthVeda's Avatar
 
Local Time: 03:23
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
Quote:
Kristy Wright
DarthVeda is offline  
Old August 15, 2003, 11:48   #43
JohnT
lifer
Apolytoners Hall of Fame
Emperor
 
JohnT's Avatar
 
Local Time: 03:23
Local Date: November 2, 2010
Join Date: Mar 1999
Location: San Antonio, TX
Posts: 4,264
Quote:
C002
Carrier route 2.
JohnT is offline  
Old August 15, 2003, 12:08   #44
Rogan Josh
Prince
 
Local Time: 08:23
Local Date: November 2, 2010
Join Date: Dec 1969
Posts: 366
Quote:
\be
x^2_{\rm max/min}=1 - \frac{1}{3} (1+y^2)(1-\cos \theta \pm \sqrt{3} \sin \theta),
\ee
with
\be
\theta = \frac{1}{3} \arctan \left( -\frac{\sqrt{4(1 + y^2)^6 - (2 (1 + y^2)^3 - 27y^2 \cos^22\beta)^2}}{2 (1 + y^2)^3 - 27y^2 \cos^22\beta} \right).
\ee
don't ask....
Rogan Josh is offline  
Old August 15, 2003, 12:41   #45
Asmodean
Civilization III Democracy GameThe Courts of Candle'Bre
Emperor
 
Asmodean's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Aug 1999
Location: Aarhus, Denmark
Posts: 3,618
Hmmm. It's a bit long, but here goes:

Quote:
When W32.Blaster.Worm is executed, it does the following:


Creates a Mutex named "BILLY." If the mutex exists, the worm will exit.


Adds the value:

"windows auto update"="msblast.exe"

to the registry key:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Run

so that the worm runs when you start Windows.


Generates an IP address and attempts to infect the computer that has that address. The IP address is generated according to the following algorithms:

For 40% of the time, the generated IP address is of the form A.B.C.0, where A and B are equal to the first two parts of the infected computer's IP address.

C is also calculated by the third part of the infected system's IP address; however, for 40% of the time the worm checks whether C is greater than 20. If so, a random value less than 20 is subtracted from C. Once the IP address is calculated, the worm will attempt to find and exploit a computer with the IP address A.B.C.0.

The worm will then increment the 0 part of the IP address by 1, attempting to find and exploit other computers based on the new IP address, until it reaches 254.


With a probability of 60%, the generated IP address is completely random.


Sends data on TCP port 135 that may exploit the DCOM RPC vulnerability. The worm sends one of two types of data: either to exploit Windows XP or Windows 2000. For 80% of the time, Windows XP data will be sent; and for 20% of the time, the Windows 2000 data will be sent.

NOTES:
The local subnet will become saturated with port 135 requests.
Due to the random nature of how the worm constructs the exploit data, this may cause computers to crash if it sends incorrect data. This may manifest as svchost.exe generating errors as a result of the incorrect data.
While W32.Blaster.Worm cannot spread to the Windows NT or Windows 2003 server, unpatched computers running these operating systems may crash as a result of the worm's attempts to exploit them. However, if the worm is manually placed and executed on a computer running these operating systems, it can run and spread.


Uses Cmd.exe to create a hidden remote shell process that will listen on TCP port 4444, allowing an attacker to issue remote commands on an infected system.


Listens on UDP port 69. When the worm receives a request from a computer to which it was able to connect using the DCOM RPC exploit, it will send msblast.exe to that computer and tell it to execute the worm.


If the current date is the 16th through the end of the month for the months of January to August, or if the current month is September through December, the worm will attempt to perform a DoS on Windows Update. However, the attempt to perform the DoS will succeed only if one the following conditions is true:
The worm runs on a Windows XP computer that was either infected or rebooted during the payload period.
The worm runs on a Windows 2000 computer that was infected during the payload period and has not been restarted since it was infected.
The worm runs on a Windows 2000 computer that has been restarted since it was infected, during the payload period, and the currently logged in user is Administrator.


The DoS traffic has the following characteristics:
Is a SYN flood on port 80 of windowsupdate.com.
Tries to send 50 RPC packets and 50 HTTP packets every second.
Each packet is 40 bytes in length.

Some fixed characteristics of the TCP and IP headers are:
IP identification = 256
Time to Live = 128
Source IP address = a.b.x.y, where a.b are from the host ip and x.y are random. In some cases a.b are random.
Destination IP address = dns resolution of "windowsupdate.com"
TCP Source port is between 1000 and 1999
TCP Destination port = 80
TCP Sequence number always has the two low bytes set to 0; the 2 high bytes are random.
TCP Window size = 16384


The worm contains the following text, which is never displayed:

I just want to say LOVE YOU SAN!!
billy gates why do you make this possible ? Stop making money and fix your software!!
Earlier I wrote en e-mail to my brother about the Blaster worm

Asmodean
__________________
Im not sure what Baruk Khazad is , but if they speak Judeo-Dwarvish, that would be "blessed are the dwarves" - lord of the mark
Asmodean is offline  
Old August 15, 2003, 12:58   #46
Makeo
Civilization II MultiplayerDiploGames
King
 
Makeo's Avatar
 
Local Time: 00:23
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Melbourne
Posts: 2,963
Quote:
Ashraf Abdel-Rahmn
__________________
Hold my girlfriend while I kiss your skis.
Makeo is offline  
Old August 15, 2003, 13:00   #47
Immortal Wombat
Apolytoners Hall of Fame
Prince
 
Immortal Wombat's Avatar
 
Local Time: 08:23
Local Date: November 2, 2010
Join Date: Dec 2000
Location: in perpetuity
Posts: 4,962
Quote:
' + eDay + '.html">next');
__________________
Concrete, Abstract, or Squoingy?
"I don't believe in giving scripting languages because the only additional power they give users is the power to create bugs." - Mike Breitkreutz, Firaxis
Immortal Wombat is offline  
Old August 15, 2003, 13:02   #48
Bereta_Eder
Settler
 
Bereta_Eder's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Oct 2000
Posts: 65,535
http://e-missos.gr/

Some website link I saw earlier and pasted it in my teleport pro off line browser. Has amateur poerty and stuff.
Bereta_Eder is offline  
Old August 15, 2003, 14:07   #49
Space05us
King
 
Space05us's Avatar
 
Local Time: 19:23
Local Date: November 2, 2010
Join Date: Nov 2001
Posts: 2,709
Quote:
37 0 2 $31.25 Kahr K9
game I was playing (its a new day so I can post it again right?
Space05us is offline  
Old August 15, 2003, 15:01   #50
Buck Birdseed
Emperor
 
Buck Birdseed's Avatar
 
Local Time: 07:23
Local Date: November 2, 2010
Join Date: Nov 2000
Location: Khoon Ki Pyasi Dayan (1988)
Posts: 3,951
Quote:
Sonic Undermind were friends for a long time before somebody pointed out that they were all musicians and that they should form some sort of band. It was late, they were drunk and it seemed like a great idea. Sonic Undermind's music is influenced by what the band listen to: rock, drum’n’bass, hip hop, big beat, more rock, a smidgen of metal, early indie, classical and did I mention rock?
__________________
Världsstad - Dom lokala genrenas vän
Mick102, 102,3 Umeå, Måndagar 20-21
Buck Birdseed is offline  
Old August 15, 2003, 15:02   #51
Sava
PolyCast Team
Emperor
 
Sava's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: Mar 2001
Location: mmmm sweet
Posts: 3,041
Quote:
Indeed. Almost twenty breakins were reported.
from the power outage thread, I was replying to a KH post.
__________________
(\__/) "Sava is teh man" -Ecthy
(='.'=)
(")_(") bring me everyone
Sava is offline  
Old August 15, 2003, 15:04   #52
geeslaka
Prince
 
geeslaka's Avatar
 
Local Time: 00:23
Local Date: November 2, 2010
Join Date: Jun 2003
Location: of the purple hand
Posts: 585
Quote:
We don't know a centiliter from a ****ing decihectagram.
Sava, showing off his education.
__________________
American by birth, smarter than the average tropical fruit by the grace of Me. -me
I try not to break the rules but merely to test their elasticity. -- Bill Veeck | Don't listed to the Linux Satanist, people. - St. Leo | If patching security holes was the top priority of any of us(no matter the OS), we'd do nothing else. - Me, in a tired and accidental attempt to draw fire from all three sides.
Posted with Mozilla Firebird running under Sawfish on a Slackware Linux install.:p
XGalaga.
geeslaka is offline  
Old August 15, 2003, 15:07   #53
Sava
PolyCast Team
Emperor
 
Sava's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: Mar 2001
Location: mmmm sweet
Posts: 3,041
I feel sorry for the morons that take me seriously...
__________________
(\__/) "Sava is teh man" -Ecthy
(='.'=)
(")_(") bring me everyone
Sava is offline  
Old August 15, 2003, 16:31   #54
Wernazuma III
Spanish CiversCivilization III PBEMNationStates
Emperor
 
Wernazuma III's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Aug 2000
Posts: 4,512
Quote:
Originally posted by Makeo Ashraf Abdel-Rahmn
OK, Google returns exactly two pages, one about a scary looking guy who received his pharmaceutical PhD in 1996 and a 16 years old who was shot in Turkey in 1997. Which one do you refer to?
__________________
"The world is too small in Vorarlberg". Austrian ex-vice-chancellor Hubert Gorbach in a letter to Alistar [sic] Darling, looking for a job...
"Let me break this down for you, fresh from algebra II. A 95% chance to win 5 times means a (95*5) chance to win = 475% chance to win." Wiglaf, Court jester or hayseed, you judge.
Wernazuma III is offline  
Old August 15, 2003, 17:29   #55
Locutus
Apolytoners Hall of FameCiv4 SP Democracy GameCiv4 InterSite DG: Apolyton TeamBtS Tri-LeagueC4BtSDG TemplarsC4WDG Team ApolytonCivilization IV CreatorsCTP2 Source Code ProjectPolyCast Team
Deity
 
Locutus's Avatar
 
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Nov 1999
Location: De Hel van Enschede
Posts: 11,702
Quote:
http://apolyton.net/forums/showthread.php?postid=2266846#post2266846
A post I made earlier today and then linked to from another forum...
__________________
Administrator of WePlayCiv -- Civ5 Info Centre | Forum | Gallery
Locutus is offline  
Old August 15, 2003, 19:12   #56
Oerdin
Deity
 
Oerdin's Avatar
 
Local Time: 00:23
Local Date: November 2, 2010
Join Date: Sep 2001
Location: In a bamboo forest hiding from Dale.
Posts: 17,436
http://cgi.ebay.com/ws/eBayISAPI.dll...category=39830
__________________
Christianity is the belief in a cosmic Jewish zombie who can give us eternal life if we symbolically eat his flesh and blood and telepathically tell him that we accept him as our lord and master so he can remove an evil force present in all humanity because a woman was convinced by a talking snake to eat from an apple tree.
Oerdin is offline  
Old August 15, 2003, 19:23   #57
Verto
Apolyton Storywriters' GuildNationStatesMac
King
 
Verto's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: Mar 2002
Location: Dallas, TX
Posts: 2,824
Quote:
The American Lung Association's State of the Air 2002 report lists the Los Angeles metro area as the most heavily ozone-polluted metropolitan area in the country, followed by Bakersfield, Fresno and Visalia-Tulare-Porterville, Calif. The Houston-Galveston area ranks fifth among the worst 25 metro areas
Verto is offline  
Old August 15, 2003, 19:48   #58
Inverse Icarus
Emperor
 
Inverse Icarus's Avatar
 
Local Time: 02:23
Local Date: November 2, 2010
Join Date: May 2001
Location: flying too low to the ground
Posts: 4,625
Quote:
cmdShuffle.BackColor = &HE0E0E0
__________________
"I've lived too long with pain. I won't know who I am without it. We have to leave this place, I am almost happy here."
- Ender, from Ender's Game by Orson Scott Card
Inverse Icarus is offline  
 

Bookmarks

Thread Tools

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 On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 03:23.


Design by Vjacheslav Trushkin, color scheme by ColorizeIt!.
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Apolyton Civilization Site | Copyright © The Apolyton Team