|
|||||||
| Home | Photo Gallery | Register | All Albums | Blogs | Forum FAQ | FlashChat | Members List | Calendar | Search | Today's Posts | Mark Forums Read | Vendor Directory |
| Welcome to Yotatech! |
|
|
Welcome to Yotatech, You are currently viewing our forum as a guest, which gives you limited access to view most discussions and access our other features. By joining our community, at no cost, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is free, fast and simple, so please join our community today! |
![]() |
|
|
Thread Tools | Search this Thread |
|
|
#51 (permalink) | |||||||
|
Contributing Member
Join Date: Jun 2004
Location: Richmond, Va
Posts: 4,261
|
__________________
Eric 88 4runner Quote:
|
|||||||
|
|
|
|
|
#52 (permalink) |
|
Contributing Member
|
maybe i'm in the minority here, but i think there should be only one centerpiece picture. and i'm not just saying that cause i made one, it doesn't have to be mine at all.
i just think that way there's a bit of consistency to the banner and it gives new visitors a uniform "website identity" of offroading toyota trucks. the random rig pictures already provides the element of dynamism. "my other pics are at the cleaners" hmmm....
__________________
[2002 4Runner 4WD] |
|
|
|
|
|
#53 (permalink) | |
|
Co-Founder/Administrator
Staff
Join Date: May 2002
Location: Auburn, Washington
Posts: 26,071
|
Quote:
__________________
Corey 2007 FJ Cruiser Built for 4wheelin', expedition, camping, and overlanding use PNW FJ Cruisers ☺ Detailing 101 ☺ Join Topsites ☺ Muffler Comparisons ☺ Maggiolinas In The Wild FJ Cruiser Buildup ☺ New Roof Top Tent ☺ Video Of My Penthouse Part II ☺ Rehinge Your ARB/Engel Fridge Blog About Roof Top Tents ☺ FJC Magazines Online Review Of My Tent ☺ 2009 Specialized Rockhopper Pro |
|
|
|
|
|
|
#54 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Okay, just an FYI; I found an elegant solution to the duplicate image problem.
What is happening now, is that each image is chosen randomly, independant of the others. In other words, there is a one in (number of images in pool) chance that a particular image will be selected. Then the next image is chosen and the odds are the same and so on, for four images. That means that the bigger the pool of images, the less likely any particular image will be chosen. However, no matter how large the pool is, probability dictates that sometimes an image will be selected more than once. Basically what I have built was a purely random slot machine More on that later...But, I found an answer... I can now check each image as it is selected, to see if it's already in the chosen pile. If it is, I discard it and grab another and so on... This should take care of our duplicate problem without slowing things down Yeah!I am coding the new solution and then will do some testing, so Corey should have the new version either later tonight or sometime tomorrow. As a side project, I am not working on both a slot machine and a poker game that will use the same script as their basis The poker game is more complicated because it has to remember what cards have already been played... hahahahhaha
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#55 (permalink) |
|
Contributing Member
|
sounds like a few IF statements, hm? (i'm a total php programming newbie obviously) glad to see you got a solution worked up.
__________________
[2002 4Runner 4WD] |
|
|
|
|
|
#56 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Nope. I was trying to avoid going the nested IF statement route. That was slowing things down too much
![]() Instead I am feeding everything into an array, and then using; in_array Checks if a value exists in an array (PHP 4, PHP 5) Searches haystack for needle and returns TRUE if it is found in the array, FALSE otherwise. To do the work for me
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#57 (permalink) | ||
|
Sponsoring Member
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,078
|
Quote:
![]() Quote:
__________________
~ Mark '96 4Runner Limited S/C MI - 370cc injectors, Air! horns, Airaid MIT, ATS A-arms, 285/75/R16 BFG MTs, Bored TB, Brembo slotted, Cobra 75 WXST, Deckplate, Downey headers, Hayden cooler, IPT valve body, Level 10 torque convertor, Meanstreak exhaust, OME/OME rears, On-board PC (XM, Nav, WiFi, etc), Port 'n Polish, Remote Start, SAW fronts, Hilux console, SMT-5, Stubb's sliders, Supra MAF, TJM-17, 2.0" pulley, Viair 450c, Walbro 190, Weasy2k cams Last edited by midiwall; 01-07-2006 at 04:32 PM. |
||
|
|
|
|
|
#58 (permalink) |
|
Super Moderator-Sponsoring Member
Staff
|
Heck, if you were a "real" programmer worth a hoot you'd just use some "real" code like FORTRAN!
![]()
__________________
WabFab Off-Road, LLC MySpace 7th Annual South East 4Runner Jamboree, 2010 The toughest part of a Jeep is the chick driving it. WabFab Off-Road 4th Anniversary Sale |
|
|
|
|
|
#59 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Hell, I can do it in Z-80 if it blows your skirt up... But teaching Corey to implement it is going to be hell...
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#60 (permalink) |
|
Co-Founder/Administrator
Staff
Join Date: May 2002
Location: Auburn, Washington
Posts: 26,071
|
I know morse code.
__________________
Corey 2007 FJ Cruiser Built for 4wheelin', expedition, camping, and overlanding use PNW FJ Cruisers ☺ Detailing 101 ☺ Join Topsites ☺ Muffler Comparisons ☺ Maggiolinas In The Wild FJ Cruiser Buildup ☺ New Roof Top Tent ☺ Video Of My Penthouse Part II ☺ Rehinge Your ARB/Engel Fridge Blog About Roof Top Tents ☺ FJC Magazines Online Review Of My Tent ☺ 2009 Specialized Rockhopper Pro |
|
|
|
|
|
#61 (permalink) | |
|
Super Moderator-Sponsoring Member
Staff
|
Quote:
![]() I LIKE the "humorous" center section pics that change. ![]()
__________________
WabFab Off-Road, LLC MySpace 7th Annual South East 4Runner Jamboree, 2010 The toughest part of a Jeep is the chick driving it. WabFab Off-Road 4th Anniversary Sale |
|
|
|
|
|
|
#62 (permalink) | |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Quote:
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
|
#63 (permalink) |
|
Super Moderator
Staff
|
rob.. are you really that bored?
__________________
94 4runenr: all the good stuff....... 89 4runner: 3.0, Auto, 5.29 lockright f/r. 31x10.5 wildcountry ATs. 81 2wd pickup: 22R | 5-sp | long bed |Civic SI seats | LockRight | Hella 500s pacific-crawlers.com For all your Trail-gear and HID lighting Solutions Needs check out yotaworks.com Online store coming soon :) |
|
|
|
|
|
#64 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
How bored is that? I am mutli-tasking, writing banner code in one window, debugging code in another window and surfing forums in yet another...
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#65 (permalink) |
|
Contributing Member
Join Date: Oct 2004
Location: B'ham, WA
Posts: 1,820
|
anyone else not too fond of the curly writing for the "Yotatech off road or around the block" looks kinda ghey to me, doesn't really fit with trucks and the rest of the banner
__________________
-Geoff *1991 Toyota Pickup Ext. Cab SR5 4x4 V6 5 spd K&N intake, port & polished heads with OS valves, port & polished intake manifold and plenum, NWOR headers and crossover, NWOR catback, Denso Iridium plugs, Redline Fluids, 4.88s, Rear LockRight, Aisin hubs, Chevy springs, BJ spacers, 2" RB body lift, 34x10.5 Swamper LTBs, WolphisWorks Sliders and bumpers, 400,000 mi. |
|
|
|
|
|
#66 (permalink) |
|
Co-Founder/Administrator
Staff
Join Date: May 2002
Location: Auburn, Washington
Posts: 26,071
|
-.-. .- -. + -.-- --- ..- + .... . .- .-. + -- . + -. --- .--
Not all of the center pics are perms. Remember, we are playing around testing it out still
__________________
Corey 2007 FJ Cruiser Built for 4wheelin', expedition, camping, and overlanding use PNW FJ Cruisers ☺ Detailing 101 ☺ Join Topsites ☺ Muffler Comparisons ☺ Maggiolinas In The Wild FJ Cruiser Buildup ☺ New Roof Top Tent ☺ Video Of My Penthouse Part II ☺ Rehinge Your ARB/Engel Fridge Blog About Roof Top Tents ☺ FJC Magazines Online Review Of My Tent ☺ 2009 Specialized Rockhopper Pro |
|
|
|
|
|
#67 (permalink) | ||
|
Sponsoring Member
Join Date: Dec 2002
Location: Seattleish, WA
Posts: 9,078
|
Quote:
Code:
ld de,CURRENT_PIC
ld hl,PIC_ARRAY
lp1:
ld bc,MAX_LEN
lp2:
ld a,(de)
cmp (hl)
ldir lp2
...
Quote:
__________________
~ Mark '96 4Runner Limited S/C MI - 370cc injectors, Air! horns, Airaid MIT, ATS A-arms, 285/75/R16 BFG MTs, Bored TB, Brembo slotted, Cobra 75 WXST, Deckplate, Downey headers, Hayden cooler, IPT valve body, Level 10 torque convertor, Meanstreak exhaust, OME/OME rears, On-board PC (XM, Nav, WiFi, etc), Port 'n Polish, Remote Start, SAW fronts, Hilux console, SMT-5, Stubb's sliders, Supra MAF, TJM-17, 2.0" pulley, Viair 450c, Walbro 190, Weasy2k cams |
||
|
|
|
|
|
#68 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Okay, Corey has the revised code that will not allow a repeat of the same picture in any single rendering of the banner.
As Corey mentioned, things are still in "beta", so submit some new centerpiece images to him so we don't have to use the demo images... I know it's more work than just voting on what you don't like, but it really is more productive
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#69 (permalink) |
|
Banned
|
rob -
i'm still seeing doubles... very rarely, but about 1 in maybe 10 or 15 times, theres 2 of the same pics up there, and its different users everytime. maybe people submitted the same pictures twice? or is it the code? ...yes i'm bored enough to hit F5 and look for doubles...
|
|
|
|
|
|
#70 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
That's quite likely since it's still the old code while we are waiting for Corey to roll out the new bits
![]() I am sure Corey will post when the new bits are up and ready for you to challenge them.
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#71 (permalink) |
|
Co-Founder/Administrator
Staff
Join Date: May 2002
Location: Auburn, Washington
Posts: 26,071
|
Challenge away, the new code has only been in place for two minutes.
Thanks Rob...
__________________
Corey 2007 FJ Cruiser Built for 4wheelin', expedition, camping, and overlanding use PNW FJ Cruisers ☺ Detailing 101 ☺ Join Topsites ☺ Muffler Comparisons ☺ Maggiolinas In The Wild FJ Cruiser Buildup ☺ New Roof Top Tent ☺ Video Of My Penthouse Part II ☺ Rehinge Your ARB/Engel Fridge Blog About Roof Top Tents ☺ FJC Magazines Online Review Of My Tent ☺ 2009 Specialized Rockhopper Pro |
|
|
|
|
|
#72 (permalink) |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Okay, so my plate is clean now... as things go, that will be the last version. That is unless I hear of more requests, they are something that Corey wants and something that I can do, or if someone finds a bug in the existing implementation.
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
|
#73 (permalink) |
|
Banned
|
crap, i've been sitting here refreshing trying to make sure im not crazy and i couldnt get a double to come up, i feel really dumb now...
|
|
|
|
|
|
#74 (permalink) |
|
Co-Founder/Administrator
Staff
Join Date: May 2002
Location: Auburn, Washington
Posts: 26,071
|
Rob, I have one more request.
Code added to grab into the iTunes store and make a new MP3 play here each time the banner refreshes
__________________
Corey 2007 FJ Cruiser Built for 4wheelin', expedition, camping, and overlanding use PNW FJ Cruisers ☺ Detailing 101 ☺ Join Topsites ☺ Muffler Comparisons ☺ Maggiolinas In The Wild FJ Cruiser Buildup ☺ New Roof Top Tent ☺ Video Of My Penthouse Part II ☺ Rehinge Your ARB/Engel Fridge Blog About Roof Top Tents ☺ FJC Magazines Online Review Of My Tent ☺ 2009 Specialized Rockhopper Pro |
|
|
|
|
|
#75 (permalink) | |
|
Contributing Member
Join Date: Oct 2002
Location: Duvall, WA
Posts: 5,109
|
Quote:
__________________
-Rob Slightly Modified 2001 Tacoma - WATRD.COM WATTORA is becoming NWToys! Tread Lightly! certified Tread Trainer Search 100+ Toyota tech sites, including this one: Toyota Tech Search |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| the new banner | Elton | Off Topic Talk | 30 | 04-01-2007 10:51 PM |
| 2007 Yotatech Calendar Submissions Closed | Robinhood150 | General Vehicle Related Topics (Non Year Related) | 117 | 12-03-2006 03:24 PM |
| About tech submissions... | MRael | 95.5-2004 Tacomas & 96-2002 4Runners | 5 | 07-15-2002 08:37 PM |