-
Posts
621 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Gallery
Everything posted by hytga
-
i was thinking of making a function that generates unique order id, aside from the autonumber that the dbs usually create, so i wrote this little code in asp. Private Function Rand(Low,High) Randomize Rand=Int((High - Low + 1) * Rnd) + Low End Function Private Function GetUniqueIDWithTimeAndIP(Time_,IP_1,IP_2) on error resume next Dim IP,ID,Array_,Array2_(),i,tempstr,blnSwitch if IP_1=IP_2 and len(IP_1)>0 then IP=IP_1 elseif len(IP_1)>0 then IP=IP_1 elseif len(IP_2)>0 then IP=IP_2 else IP=Rand(100000,1000000) end if IP=Replace(IP,".","") if not IsNumeric(trim(IP)) then IP=Rand(100000,1000000) ID=Time_ & IP ID=replace(ID,"/","") ID=replace(ID,"\","") ID=replace(ID,":","") ID=replace(ucase(ID),ucase("AM"),"") ID=replace(ucase(ID),ucase("PM"),"") ID=replace(ID," ","") ID=replace(ID,".","") if cint(len(ID)/2)<>len(ID)/2 then ID=ID & Rand(1,9) if IsNumeric(ID) then for i=1 to len(ID) step 2 tempstr=tempstr & mid(ID,i,2) & "." next if right(tempstr,1)="." then tempstr=left(tempstr,len(tempstr)-1) if left(tempstr,1)="." then tempstr=right(tempstr,len(tempstr)-1) Array_=split(tempstr,".") If IsArray(Array_) then redim Array2_(ubound(Array_)) blnSwitch=false for i =lbound(Array_) to ubound(Array_) step 1 if blnSwitch then Array2_(i-1)="-" & Array_(i) end if blnSwitch=not blnSwitch next blnSwitch=true for i =lbound(Array_) to ubound(Array_) step 1 if blnSwitch then Array2_(i+1)=Array_(i) end if blnSwitch=not blnSwitch next end if ID="ORD" & Join(Array2_,"") GetUniqueIDWithTimeAndIP=ID else GetUniqueIDWithTimeAndIP="" end if End function you call the funciton like GetUniqueIDWithTimeAndIP(now(),Request.ServerVariables("REMOTE_ADDR"),Request.ServerVariables("REMOTE_HOST")) anyway if you guys know a better method, share it the output looks something like this ORD-6271-5100-7422-3319-3817
-
wow. that looks awsome. Gotta buy me one of these to go fishing
-
have you tried this one Sip? http://www.daemon-tools.cc/dtcc/portal/dow...ategory&catid=5
-
lol. suing the states that recognize genocide. I woneder what he's going to base his lawsuit on?
-
it might happen if you have two cd roms and you put two of the cds into both drives at the same time. try putting cds one by one. if that doesn't help, i'm out of ideas so far.
-
k. one more question. what kind of error does it give you?
-
what are your pc specs? some of these new games require alot of memory. are you running xp? you bought polish version?
-
there was a topic in humor section about big-boys.com, with a drunk russian. Does anyone know where is it?
-
lol. who made this poll? ethnic american btw this census is not right. There are 300k armenians in US? I don't think so.
-
hi Arpa jan. I remember the quote. It really cannot be stressed enough that as many people as possible that subscribe to Time or not, send a letter showing their disgust, and demand an action from Time to correct this garbage. Followed by lawsuits in Europe and U.S. if they fail to do so. If we let this pass by... Anyway. You all know what i wanted to say. Ther's no need to repeat things over and over again.
-
ha ha ha . There we go. That's more like it
-
"good ones too" as if all armenians are bad and he actually had good armenian friends, something that's unbelieveable even for him Edit: how can he have bad armenian firends? did he actually need to imply that armenians are generally bad? This tells us a thing or two about this misterious seller and his agenda. If that wasn't already obveous News flash. Did you guys know that armenians were responsible for jewish deaths during the nazi period?
-
http://pages.ebay.com/help/policies/offensive.html follow the above link and report the item (look for the report link at the bottom) 6410249066
-
we should contact ebay complaining not to allow their pages be used for denialist propoganda
-
Arpa goble goble or no goble goble they get their job done. We should take action not make fun of the gobleing noise. http://www.azg.am/?lang=EN&num=2005070201
-
the funny thing about it is that it is mentioned in the first sentances of the letter that time's response is just that they are an independent newsmagazine which is too genetic, and in the reply they repeat the same thing like a robot
-
i didn't know she was jewish
-
you have to take into consideration the effects of the rest nontheless, and that many foreigners don't know much about mccary or weems or the genocide subject itself. So what they see is just the word "professor" followed by what they will listen to
-
http://www.armenialiberty.org/armeniarepor...379CD3F5003.ASP can you believe this guy? he thinks everyone else is retarded just like him. he's been talking about increasing the butget since he became president. you guys think this should be in the humor section? And a question. Does anyone believe he's capable of launching a war or do you think it's just a internal diplomatic tactic? i'm curious as to what you gus think
-
i like the dark haired ones just fine (straight). it gives them certain elegance.
-
you sure this topic belongs in science and technology seciton?
-
angialnerin ltsum en kamazy u tanum en vor varen. Mi gughi kokhkov en antsnum. gughatsinerits meky asuma axper es srants ur eq tanum. asum en tanum enq varenq. es qughatsin asuma tuny liqy chor hats ka tog trchen uten, sovats porov chmernen. es angialnerits maky asuma ape et hatsy menq pti trchenq? es gughatsin asuma ha. es angialy asuma. qshi varpet
-
abarantsu tgen galisa tun akanjin akanjogh kakhats. hery asuma es inch es arel ara? du gites ova akanjogh kapum? tgen asuma ha. mek geyery mekel piratnery. asuma hima yes pirat em. hery asuma hima dury batsum em ete navy dursy kainats chegav gluxt jardelu em.
-
is it a featue or a glitch? i just clicked "vew poll". and it says you've already voted. (not that i'm interested in voting in my poll)
