August 14, 2003, 22:45
|
#31
|
Settler
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);
}
|
|
|
|
|
August 14, 2003, 22:51
|
#32
|
Emperor
Local Time: 21:23
Local Date: November 1, 2010
Join Date: Mar 2006
Location: Richmond, VA
Posts: 8,057
|
nothing in there...
|
|
|
|
August 14, 2003, 22:55
|
#33
|
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)
|
|
|
|
August 14, 2003, 23:02
|
#34
|
Emperor
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...
__________________
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
|
|
|
|
August 15, 2003, 05:28
|
#35
|
Emperor
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.
|
|
|
|
August 15, 2003, 05:40
|
#36
|
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
|
|
|
|
August 15, 2003, 05:44
|
#37
|
Emperor
Local Time: 09:23
Local Date: November 2, 2010
Join Date: Aug 2000
Posts: 4,512
|
__________________
"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.
|
|
|
|
August 15, 2003, 05:48
|
#38
|
PolyCast Thread Necromancer
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
|
|
|
|
|
August 15, 2003, 07:31
|
#39
|
Emperor
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
|
|
|
|
August 15, 2003, 10:51
|
#40
|
Prince
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
|
|
|
|
August 15, 2003, 11:09
|
#41
|
President of the OT
Local Time: 01:23
Local Date: November 2, 2010
Join Date: Nov 1999
Location: Calgary, Alberta
Posts: 40,843
|
__________________
"I'll never doubt you again when it comes to hockey, [Prince] Asher." - Guynemer
|
|
|
|
August 15, 2003, 11:19
|
#42
|
Emperor
Local Time: 03:23
Local Date: November 2, 2010
Join Date: Dec 1969
Location: Baltimore, MD
Posts: 4,325
|
|
|
|
|
August 15, 2003, 11:48
|
#43
|
Emperor
Local Time: 03:23
Local Date: November 2, 2010
Join Date: Mar 1999
Location: San Antonio, TX
Posts: 4,264
|
|
|
|
|
August 15, 2003, 12:08
|
#44
|
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....
|
|
|
|
August 15, 2003, 12:41
|
#45
|
Emperor
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
|
|
|
|
August 15, 2003, 12:58
|
#46
|
King
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.
|
|
|
|
August 15, 2003, 13:00
|
#47
|
Prince
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
|
|
|
|
August 15, 2003, 13:02
|
#48
|
Settler
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.
|
|
|
|
August 15, 2003, 14:07
|
#49
|
King
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?
|
|
|
|
August 15, 2003, 15:01
|
#50
|
Emperor
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?
|
|
|
|
|
August 15, 2003, 15:02
|
#51
|
Emperor
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.
|
|
|
|
August 15, 2003, 15:04
|
#52
|
Prince
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.
|
|
|
|
August 15, 2003, 15:07
|
#53
|
Emperor
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...
|
|
|
|
August 15, 2003, 16:31
|
#54
|
Emperor
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.
|
|
|
|
August 15, 2003, 17:29
|
#55
|
Deity
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...
|
|
|
|
August 15, 2003, 19:12
|
#56
|
Deity
Local Time: 00:23
Local Date: November 2, 2010
Join Date: Sep 2001
Location: In a bamboo forest hiding from Dale.
Posts: 17,436
|
__________________
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.
|
|
|
|
August 15, 2003, 19:23
|
#57
|
King
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
|
|
|
|
|
August 15, 2003, 19:48
|
#58
|
Emperor
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
|
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
All times are GMT -4. The time now is 03:23.
|
|