Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community 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 fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-18-2007, 11:05 AM   #1
lucas131
¯\_(ツ)_/¯
 
Industry Role:
Join Date: Aug 2004
Posts: 11,475
Any script to mix randomly lines?

Have some list o fhg and would like to mix it to random all lines. How to do it in excel or any other tool?
lucas131 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 11:14 AM   #2
woj
<&(©¿©)&>
 
woj's Avatar
 
Industry Role:
Join Date: Jul 2002
Location: Chicago
Posts: 47,882
if you want to invest a few bucks, icq: 33375924
__________________
Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager
woj is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 11:18 AM   #3
Quickdraw
Confirmed User
 
Join Date: Mar 2004
Location: → → →
Posts: 1,717
Here is a php script to do it. Jace asked for a similar one some time ago, it might work for you. It outputs to the screen vs. saving another file, so copy/paste will be your friend
You can also remove the <br> in the echo statement and just save the output if that works better.
PHP Code:
<?php 
$file 
file("urls.txt"); 

// Strips dupes if you need, comment out if you do not need this 
$temp array_unique($file); 

//Shuffles the deck or randomizes :) 
shuffle($temp); 
//Prints each line  
foreach($temp as $value
   { 
   echo 
"$value<br>"
   } 
exit; 
?>
or,
Potter posted a way to do it in Excel or OpenOffice..
Quote:
You can also use open office. Paste all the items into a spreadsheet, then paste the random number char code into the column next to the urls, then sort by numbered column, copy the column with the urls and you're done.
Sorry Woj, you hadn't posted yet when I started..
I imagine Woj can do a lot better than this anyway, definitely worth looking into

Last edited by Quickdraw; 02-18-2007 at 11:20 AM.. Reason: added woj stuff
Quickdraw is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 11:38 AM   #4
SmokeyTheBear
►SouthOfHeaven
 
SmokeyTheBear's Avatar
 
Join Date: Jun 2004
Location: PlanetEarth MyBoardRank: GerbilMaster My-Penis-Size: extralarge MyWeapon: Computer
Posts: 28,609
http://blog.webspacemania.com/0fhg/

wont do very many though
__________________
hatisblack at yahoo.com
SmokeyTheBear is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 12:13 PM   #5
lucas131
¯\_(ツ)_/¯
 
Industry Role:
Join Date: Aug 2004
Posts: 11,475
Quote:
Originally Posted by Quickdraw View Post
Here is a php script to do it. Jace asked for a similar one some time ago, it might work for you. It outputs to the screen vs. saving another file, so copy/paste will be your friend
You can also remove the <br> in the echo statement and just save the output if that works better.
PHP Code:
<?php 
$file 
file("urls.txt"); 

// Strips dupes if you need, comment out if you do not need this 
$temp array_unique($file); 

//Shuffles the deck or randomizes :) 
shuffle($temp); 
//Prints each line  
foreach($temp as $value
   { 
   echo 
"$value<br>"
   } 
exit; 
?>
or,
Potter posted a way to do it in Excel or OpenOffice..

Sorry Woj, you hadn't posted yet when I started..
I imagine Woj can do a lot better than this anyway, definitely worth looking into
Thanks
lucas131 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:05 PM   #6
bonkerz2007
Confirmed User
 
Join Date: Sep 2005
Posts: 794
FHG2HTML v.1.2.1

Here's a desktop tool:


FHG2HTML v.1.2.1


Import a list of your galleries and check the random button. It outputs html links.
bonkerz2007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:13 PM   #7
Porko
SeeMyBucks.com
 
Porko's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: USA
Posts: 4,014
thanks for that !!
http://www.fhgstore.com/wmtools.html
__________________
Porko is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:17 PM   #8
Porko
SeeMyBucks.com
 
Porko's Avatar
 
Industry Role:
Join Date: Sep 2002
Location: USA
Posts: 4,014
Do you know a software to extract urls from a text mixed with urls in a txt?
__________________
Porko is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:23 PM   #9
jayeff
Confirmed User
 
Join Date: May 2001
Posts: 2,944
This is similar to at least one above, but it will allow you to specify how many links to show from the main list. In this example, 0 through 24 = 25:
Code:
<?php
$links=file("http://yourdomain.com/yourfile.html");
shuffle($links);
$output = array_slice($links, 0, 24);
foreach ($output as $a) {
    echo $a; 
} 
?>
You do not need to put a full URL in for the file, but I use this code on several sites to generate random lists from a single "master".
jayeff is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:31 PM   #10
HomeFry
Confirmed User
 
HomeFry's Avatar
 
Join Date: Jun 2006
Posts: 1,062
Quote:
Originally Posted by lucas131 View Post
Have some list o fhg and would like to mix it to random all lines. How to do it in excel or any other tool?
Here's a tool for stractings teh randomly lines from TGPs and FHGs:
HomeFry is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 04:45 PM   #11
ucv.karl
Confirmed User
 
Join Date: Jul 2006
Location: Phx,Az
Posts: 498
I am not sure how PHP became the de facto language for all tasks, but here is alternative solution using Ruby.

Code:
data=IO.readlines('urls.txt')

new_data=data.sort_by {rand}

output=File.open('output.txt','w')

new_data.each do |line|
        output.puts line
end

output.close
__________________
It's better when you can Switch.
ICQ: 263079754
ucv.karl is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 05:44 PM   #12
bonkerz2007
Confirmed User
 
Join Date: Sep 2005
Posts: 794
Quote:
Originally Posted by Porko View Post
Do you know a software to extract urls from a text mixed with urls in a txt?

Depends ... if you're talking about a .csv file you can use Excel. How is the text file structured?
bonkerz2007 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 06:31 PM   #13
u-Bob
there's no $$$ in porn
 
u-Bob's Avatar
 
Industry Role:
Join Date: Jul 2005
Location: icq: 195./568.-230 (btw: not getting offline msgs)
Posts: 33,063
Code:
$n = @fhglist;
foreach (reverse 0..$n) {
my $draw = splice(@fhglist, rand $n, 1);
push @fhglist, $draw;
}
u-Bob is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-18-2007, 07:26 PM   #14
latinasojourn
Confirmed User
 
Join Date: Oct 2003
Posts: 3,191
free utility that will randomize lines, called "the hat":

http://www.harmonyhollow.net/hat.shtml
latinasojourn is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.