indexof

search for more blogs here

 

"System.String is freaking fast" posted by ~Ray
Posted on 2008-01-01 21:15:39

I was reading 's post on a with some test statistics. It's a great post but some things really struck out at me: the string. IndexOf(...) and the string. SubString(...) calls in the middle of a loop. I've been trained (poorly -- by VB6) that arrange manipulation is extremely costly and will kill your performance. I believed that it's best done with unsafe() pointers and barring that with arrays.  I *think* I'm still right on the unsafe() pointers but I'm definitely NOT right on the arrange calls. Ayende recently proved that is really fast.  My next target was SubString(). This method just CAN'T be fast. Well after playing around with Sandy's label. I can't sight any other non-unsafe() way of getting a sub-string of a string that is anywhere NEAR as fast as String. SubString(). Lesson? Most of the code for System. String is unmanaged and is optimized C/C++ label.  It's also very WELL TESTED code that has survived the test of time in the wild.  Assuming you can or worse yet attempting to do so will result in much worse performance. In fact most of the label in the entire BCL is optimized and come up tested having survived quite awhile in the wild under attack.  You should first assume that a given algorithm or function in the BCL is a best-of-breed implementation until you've proven otherwise. THEN you may hone and then you MUST alter that to the community :) P. S.- Surprisingly the arrange. IndexOf function on the char[] produced from a stringInstance. ToCharArray() method is far slower than using the stringInstance. IndexOf() directly. P. P. S. - Apparently arrange. IndexOf() hasn't undergone the intense performance scrutiny that arrange. IndexOf() has.

Forex Groups - Tips on Trading

Related article:
http://chadmyers.com/Blog/archive/2007/11/15/system.string-is-freaking-fast.aspx

comments | Add comment | Report as Spam


"First Post" posted by ~Ray
Posted on 2007-11-27 20:01:41

I decided to act this place to share every thing i found on internet ( share open- dir only )Open-dir included music ebooks software... Now we go to check some google tips."parent directory " /appz/ -xxx -html -htm -php -shtml -opendivx -md5 -md5sums"parent directory " DVDRip -xxx -html -htm -php -shtml -opendivx -md5 -md5sums"parent directory "Xvid -xxx -html -htm -php -shtml -opendivx -md5 -md5sums"parent directory " Gamez -xxx -html -htm -php -shtml -opendivx -md5 -md5sums"parent directory " MP3 -xxx -html -htm -php -shtml -opendivx -md5 -md5sums"parent directory " label of Singer or album -xxx -html -htm -php -shtml -opendivx -md5 -md5sumsNotice that I am only changing the word after the parent directory change it to what you want and you ordain get a lot of cram. Method 2put this arrange in google examine:?intitle:list of? mp3You only need add the name of the song/artist/singer. Example: ?intitle:list of? mp3 jacksonMethod 3inurl:microsoft filetype:???Method 4"name of disapprove"download"name of object transfer"remove "name of disapprove"downloadfree "label of object transfer"Good luck !PS: You can share change state -dir with me by your mention. Thanks

Forex Groups - Tips on Trading

Related article:
http://alex-indexof.blogspot.com/2007/11/first-post.html

comments | Add comment | Report as Spam


"Javascript: indexof & substr" posted by ~Ray
Posted on 2007-11-09 17:17:42

Im working on learning javascript. Im quite new as youll be able to tell. Im working on devising a compose that ordain help me with this problem : <b>You undergo 1 second to double and go: </b><hr><b>1847920588822</b><hr> Every back up the be changes and i have exactly one second to manifold that number and return it. As you can see from the code. I undergo been learning that there is way through javascript to choose upthose numbers double them and refer them. In this single back up indexof i used to find the first occurence of this value in the string substr i used to remove the claim be now i need to manifold it and submit it. Can anyone give me some insight on how i can go about writing this ?Thanks. Neqtan ok now is easy to manifold a number. Unfortunately to alter the problem solvable you must "translate" it into the "client-side language" if I may say so. Where that determine comes from? Who counts the seconds? Where is that create to refer that determine? Which is the user's challenge who ordain double that number? And after all what is the use of all these? Is this a game? How's that bet? Powered by vBulletin® Version 3.5.7procure &write;2000 - 2007. Jelsoft Enterprises Ltd.

Forex Groups - Tips on Trading

Related article:
http://www.webdeveloper.com/forum/showthread.php?t=160444&goto=newpost

comments | Add comment | Report as Spam


"Jacksons game a disappointment??" posted by ~Ray
Posted on 2007-10-28 11:47:27

answer goPage(newindex) {currentLocation = getThisPage();cleanedLocation = '';// If this is an SHTML communicate if (currentLocation indexOf(" shtml") > -1) {// sight if this is a request that already has a page specification if (currentLocation indexOf("-page") > -1) {cleanedLocation = currentLocation substring(0 currentLocation indexOf("-page")) + ' shtml';} else {cleanedLocation = currentLocation;}// Only add the "-pageX" suffix when the summon index is higher than 1 if (newindex != 1) {cleanedLocation = cleanedLocation substring(0 cleanedLocation indexOf(" shtml")) + '-page' + newindex + ' shtml';}} else {// Only add the "-pageX" suffix when the summon index is higher than 1 if (newindex != 1) {cleanedLocation = currentLocation + '&page=' + newindex;} else {cleanedLocation = currentLocation;}}document location = cleanedLocation;}function getThisPage() {currentURL = '' + window document location;thispageresult = '';if (currentURL indexOf("?summon=") > -1) {currentURL = currentURL substring(0 currentURL indexOf('?page='));thispageresult = currentURL;} else if (currentURL indexOf("&summon=") > -1) {currentURL = currentURL substring(0 currentURL indexOf('&summon='));thispageresult = currentURL;} else {thispageresult = currentURL;}// alter sure the URL generated by this fuctnion is compatible with mirror image thispageresult = thispageresult substring(7 thispageresult length);thispageresult = thispageresult substring(thispageresult indexOf('/')+1 thispageresult length);thispageresult = basehref + thispageresult;if (thispageresult indexOf('sourcedomain') > -1) {thispageresult = thispageresult substring(0 thispageresult indexOf('?'));}return thispageresult;} The Minnesota Vikings undergo to be thrilled to come away with the type of victory they had over the Atlanta Falcons in Week 1. Then again it was the Falcons who should end with less wins than the Vikings. Like I said last week I expected the Vikes to win but they played much exceed than I anticipated. Adrian Peterson and the defense were the two essential reasons why they won. What an opportunity alter away for Peterson to showcase his abilities. As a rookie the one thing you want to do in your first game is establish yourself especially in a running back-by-committee situation with a veteran desire the Vikings undergo in Chester Taylor. Taylor goes down immediately in the first quarter and Peterson is given the opportunity any rookie dreams of and made the most of it. Peterson now carries the charge of having to live up to high expectations for the be of the season and his go. He handled it astoundingly well for his debut and I think he can handle it. The one thing I really noticed about Peterson that I was impressed about was how well he used the lay given to him. Get him going in the change state field at full speed and he looked desire he couldn't be tackled. The one person I was disappointed with was Tarvaris Jackson. He did a decent job managing the football bet but he wasn't overly striking to me in the process. On the first drive of the back up half he threw to the wrong bring up on a pass intended for Sidney Rice and five plays later he threw behind Visanthe Shiancoe which led to an interception. Later on when the Vikings should undergo been working the measure. Jackson risked another turnover by throwing the ball away when he should've just taken the sack. fasten Childress in his Monday touch conference called Jackson's performance "change surface walk" and "OK."Â I'd agree with that. The offense also failed to disrespect inside Atlanta's 30-yard line. I'm still looking for that drive where Jackson leads us down the field for a touchdown. It will come but it has to be this week. The defense played beyond just about anyone's expectations. The assort stopped the lowly Falcons but to advance two touchdowns as well?The scores no disbelieve stood out but the pass go was downright impressive. Former defensive coordinator Mike Tomlin got a lot of credit for his defense a year ago but he didn't put that much pressure on the quarterback as the defense totaled just 30 sacks which tied for 25th in the league. After the first week this toughen the defense is tied for first in the league with six. What I'm looking for this week is cornerbacks Antoine Winfield and Cedric Griffin on Detroit's Roy Williams and Calvin Johnson. If we can get a strong push up lie again hopefully that will act compel off our secondary. The Vikings played well in their opener. The defense won't score two touchdowns again this week so it's measure for Jackson to show me something. Chris Jagerson is a Reporter cater writer I would undergo to agree that the Vikings exceeded a lot of peoples expectations. We were ranked at the furnish of everybodys power rankings. Only one way to go and that is up. I said right after the game a generic NFL QB who turned in TJack's performance would probably get a C+. I furnish him a B because let's face it he's super green and didn't come close to losing the bet. But if the guy was disappointed then.

Forex Groups - Tips on Trading

Related article:
http://rubechat.kfan.com/forums/thread/1967598.aspx

comments | Add comment | Report as Spam


"Jacksons game a disappointment??" posted by ~Ray
Posted on 2007-10-28 11:47:26

function goPage(newindex) {currentLocation = getThisPage();cleanedLocation = '';// If this is an SHTML request if (currentLocation indexOf(" shtml") > -1) {// sight if this is a communicate that already has a summon specification if (currentLocation indexOf("-page") > -1) {cleanedLocation = currentLocation substring(0 currentLocation indexOf("-page")) + ' shtml';} else {cleanedLocation = currentLocation;}// Only add the "-pageX" suffix when the page index is higher than 1 if (newindex != 1) {cleanedLocation = cleanedLocation substring(0 cleanedLocation indexOf(" shtml")) + '-page' + newindex + ' shtml';}} else {// Only add the "-pageX" affix when the page index is higher than 1 if (newindex != 1) {cleanedLocation = currentLocation + '&page=' + newindex;} else {cleanedLocation = currentLocation;}}document location = cleanedLocation;}answer getThisPage() {currentURL = '' + window enter location;thispageresult = '';if (currentURL indexOf("?page=") > -1) {currentURL = currentURL substring(0 currentURL indexOf('?summon='));thispageresult = currentURL;} else if (currentURL indexOf("&page=") > -1) {currentURL = currentURL substring(0 currentURL indexOf('&summon='));thispageresult = currentURL;} else {thispageresult = currentURL;}// Make sure the URL generated by this fuctnion is compatible with reflect visualise thispageresult = thispageresult substring(7 thispageresult length);thispageresult = thispageresult substring(thispageresult indexOf('/')+1 thispageresult length);thispageresult = basehref + thispageresult;if (thispageresult indexOf('sourcedomain') > -1) {thispageresult = thispageresult substring(0 thispageresult indexOf('?'));}return thispageresult;} The Minnesota Vikings undergo to be thrilled to come away with the type of victory they had over the Atlanta Falcons in Week 1. Then again it was the Falcons who should finish with less wins than the Vikings. desire I said last week I expected the Vikes to win but they played much exceed than I anticipated. Adrian Peterson and the defense were the two essential reasons why they won. What an opportunity alter away for Peterson to showcase his abilities. As a rookie the one thing you be to do in your first bet is establish yourself especially in a running back-by-committee situation with a veteran like the Vikings have in Chester Taylor. Taylor goes drink immediately in the first accommodate and Peterson is given the opportunity any rookie dreams of and made the most of it. Peterson now carries the burden of having to live up to high expectations for the be of the toughen and his career. He handled it astoundingly come up for his debut and I think he can handle it. The one thing I really noticed about Peterson that I was impressed about was how come up he used the lay given to him. Get him going in the open field at full go and he looked desire he couldn't be tackled. The one person I was disappointed with was Tarvaris Jackson. He did a decent job managing the football bet but he wasn't overly striking to me in the process. On the first control of the back up half he threw to the do by bring up on a pass intended for Sidney Rice and five plays later he threw behind Visanthe Shiancoe which led to an interception. Later on when the Vikings should undergo been working the clock. Jackson risked another turnover by throwing the ball away when he should've just taken the sack. fasten Childress in his Monday press conference called Jackson's performance "even keel" and "OK."Â I'd accept with that. The offense also failed to disrespect inside Atlanta's 30-yard lie. I'm comfort looking for that control where Jackson leads us down the field for a touchdown. It ordain come but it has to be this week. The defense played beyond just about anyone's expectations. The assort stopped the lowly Falcons but to score two touchdowns as well?The scores no doubt stood out but the pass rush was downright impressive. Former defensive coordinator Mike Tomlin got a lot of credit for his defense a year ago but he didn't put that much compel on the play as the defense totaled just 30 sacks which tied for 25th in the league. After the first week this toughen the defense is tied for first in the unify with six. What I'm looking for this week is cornerbacks Antoine Winfield and Cedric Griffin on Detroit's Roy Williams and Calvin Johnson. If we can get a strong displace up front again hopefully that will act compel off our secondary. The Vikings played come up in their opener. The defense won't score two touchdowns again this week so it's time for Jackson to show me something. Chris Jagerson is a Reporter staff writer I would have to agree that the Vikings exceeded a lot of peoples expectations. We were ranked at the bottom of everybodys cater rankings. Only one way to go and that is up. I said right after the game a generic NFL QB who turned in TJack's performance would probably get a C+. I furnish him a B because let's face it he's super color and didn't go close to losing the game. But if the guy was disappointed then.

Forex Groups - Tips on Trading

Related article:
http://rubechat.kfan.com/forums/thread/1967598.aspx

comments | Add comment | Report as Spam


"IE 7 Cool Menus 3 & 4 Not Working? Quick Fix with a Replacement ..." posted by ~Ray
Posted on 2007-10-10 16:11:03

With the release of IE 7 (Internet Explorer 7) in 2006 many webmasters were pulling out their hair trying to sight why their alter Menus 3 and Cool Menus 4 navigation scripts were not working. Particularly the drop drink functions in alter Menus 3 systems and early versions of Cool Menus 4 did not bring home the bacon properly. This was really odd because the displace down functionality would comfort work in Fire Fox and Netscape. Cool Menus were originally written and give by web developer Thomas Bratta. Java Script king. In early 2000 his scripts were available for use and download on Dynamic Drive com which is currently not working. We are hoping Mr. Bratta makes a go or starts a new web site. He and his team created some very useful and creative menu scripts for webmasters to use. believe here to see and menus in challenge. In the Meantime VisionEFX is not holding its breathe for that to happen so we dug into the problem and came up with an answer. In the old script there was a Browser Check Function Script. Here is the script in its original form. function lib_bwcheck(){ //Browsercheck (needed) this ver=navigator appVersion; this agent=navigator userAgent this dom=document getElementById?1:0 this ie5=(this ver indexOf(”MSIE 5″)>-1 && this dom)?1:0; this ie6=(this ver indexOf(”MSIE 6″)>-1 && this dom)?1:0; this ie4=(document all && !this dom)?1:0; this ie=this ie4||this ie5||this ie6 this mac=this agent indexOf(”Mac”)>-1 this opera5=this agent indexOf(”Opera 5″)>-1 this ns6=(this dom && parseInt(this ver) >= 5) ?1:0; this ns4=(document layers && !this dom)?1:0; this bw=(this ie6 || this ie5 || this ie4 || this ns4 || this ns6 || this opera5 || this dom) return this } After months of research we open a replacement Browser Check answer Script that restores the drop down menus in the alter Menus system. answer lib_bwcheck(){ //Browsercheck (needed) this ver=navigator appVersion; this agent=navigator userAgent this dom=enter getElementById?1:0 this ie5=(this ver indexOf(”MSIE 5″)>-1 && this dom)?1:0; this ie6=(this ver indexOf(”MSIE 6″)>-1 && this dom)?1:0; this ie7=(this ver indexOf(”MSIE 7″)>-1 && this dom)?1:0; this ie4=(document all && !this dom)?1:0; this ie=this ie4||this ie5||this ie6 || this ie7 this mac=this agent indexOf(”Mac”)>-1 this opera5=this agent indexOf(”Opera 5″)>-1 this ns6=(this dom && parseInt(this ver) >= 5) ?1:0; this ns7=(this dom && parseInt(this ver) >= 5) ?1:0; this ns4=(document layers && !this dom)?1:0; this bw=(this ie7 || this ie6 || this ie5 || this ie4 || this ns4 || this ns6 || this opera5 || this dom) go this } Simply regenerate the old Browser analyse answer Script with the one above and you are good to go! Everything should work book until Microsoft releases Internet Explorer 8.

Forex Groups - Tips on Trading

Related article:
http://www.cnbeta.info/?p=14055

comments | Add comment | Report as Spam


"Can anyone tell me what does this javascript do?" posted by ~Ray
Posted on 2007-10-06 08:09:03

Welcome to the My ADSL & My Broadband Forums - Internet. Gaming. Hardware. Software forums. You are currently viewing our boards as a guest which gives you limited access to believe most discussions and find our other features. By joining our free community you ordain have find to affix topics communicate privately with other members (PM) respond to polls upload circumscribe and access many other special features. Registration is fast simple and absolutely remove so gratify. ! <script type="text/JavaScript"><!--function MM_preloadImages() { //v3.0 var d=enter; if(d images){ if(!d. MM_p) d. MM_p=new Array(); var i,j=d. MM_p length,a=MM_preloadImages arguments; for(i=0; i<a length; i++) if (a[i] indexOf("#")!=0){ d. MM_p[j]=new visualise; d. MM_p[j++] src=a[i];}}}answer MM_swapImgRestore() { //v3.0 var i,x,a=document. MM_sr; for(i=0;a&&i<a length&&(x=a[i])&&x oSrc;i++) x src=x oSrc;}answer MM_findObj(n d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n indexOf("?"))>0&&parent frames length) { d=parent frames[n substring(p+1)] enter; n=n substring(0,p);} if(!(x=d[n])&&d all) x=d all[n]; for (i=0;!x&&i<d forms length;i++) x=d forms[i][n]; for(i=0;!x&&d layers&&i<d layers length;i++) x=MM_findObj(n,d layers[i] enter); if(!x && d getElementById) x=d getElementById(n); return x;}answer MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage arguments; document. MM_sr=new arrange; for(i=0;i<(a length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){enter. MM_sr[j++]=x; if(!x oSrc) x oSrc=x src; x src=a[i+2];}}//--></script> Seems desire it takes in various images and displays them in a grade one after the other kind of desire a transitional slideshow. Is it by any come about a move of the CrossFade applet by anfyteam? these are standard recommended methods for doing 3 things - first method is for preloading a enumerate of images so that when they are requested (say by means of a mouseover) they have already been preloadedsecond method is used to back up in mouseover/rollover effects for images label the one method with the visualise you want to be on mouseover the fourth method is the change of this method (mouseout)the third method is a go across browser method for referring to an element in the html of a page

Forex Groups - Tips on Trading

Related article:
http://mybroadband.co.za/vb/showthread.php?t=87504

comments | Add comment | Report as Spam


 

 




blogs - aa blogs - air force blogs - aquarius blogs - aries blogs - army blogs - arts blogs - baby blogs - blogs 4 men - blogs 4 women - cancer blogs - capricorn blogs - career change blogs - choice blogs - christmas blogs - cigar blogs - cigarette blogs - cig blogs - coast guard blogs - coffee bean blogs - college baseball blogs - college basketball blogs - college football blogs - colleges blogs - computer blogs - create blogs - dating blogs - elvis blogs - email chat blogs - email pal blogs - enhancement blogs - fall blogs - fha blogs - freedom blogs - friendly blogs - funny blogs - gambler blogs - gemini blogs - her blog - his blog - hockey blogs - join blogs - javas blogs - kid safe blogs - leo blogs - libra blogs - apartments blogs - coffees blogs - horoscopes blogs - life advice blogs - lover blogs - marine blogs - married blogs - military blogs - misc blogs - more money blogs - mortgage blogs - move blogs - movies blogs - musical blogs - navy blogs - new in town blogs - obscure blogs - online date blogs - online game blogs - over 30 blogs - over 40 blogs - over 50 blogs - over 60 blogs - over 70 blogs - over 80 blogs - over 90 blogs - password blogs - pc blogs - mortgages blogs - peoples blogs - pictures blogs - pipe blogs - pisces blogs - poems blogs - poker blogs - police blogs - political blogs radio blogs - read blogs - recreational vehicle blogs - relocation blogs - reserve blogs - rv blogs - safe blogs - scorpio blogs - singles blogs - smokers blogs - smoker blogs - state blogs - state college blogs - taurus blogs - teen advice blogs - teenager blogs - tobacco blogs - tv blogs - vacation blogs - veteran blogs - virgo blogs - virtual blogs - weekly blogs - wingman blogs - word blogs - words blogs - writer blogs - poetry blogs - prescription blogs - sagittarius blogs - straight blogs - summer blogs - gi blogs - hooka blogs - penis enlargement blogs - vfw blogs - casinos blogs - casino blogs - web hosting blogs - hosting blogs - auto blogs - truck blogs - van blogs - suv blogs - 4 wheel blogs - harley blogs - flu blogs - diet blogs - pistols blogs - teenage blogs - lpga blogs - burnable blogs - new tunes blogs - coaching blogs - treasures blogs - trades blogs - nutty blogs - skate blogs - play 21 blogs - weather blogs - poker players - golf blogs - american blogs - football blogs - baseball blogs - hockey blogs - basketball blogs - soccer blogs - cooking blogs - recipe blogs - space blogs - 3d games blogs - barbecue blogs




the indexof archives:

11 articles in 2006-01
22 articles in 2006-02
27 articles in 2006-03
36 articles in 2006-04
27 articles in 2006-05
26 articles in 2006-06
24 articles in 2006-07
18 articles in 2006-08
22 articles in 2006-09
30 articles in 2006-10
22 articles in 2006-11
22 articles in 2006-12
12 articles in 2007-01
12 articles in 2007-02
3 articles in 2007-03
7 articles in 2007-04
11 articles in 2007-05
10 articles in 2007-06
3 articles in 2007-07
1 articles in 2007-09




next page


indexof