Jump to content

Fblade1987

Active Members
  • Posts

    41
  • Joined

  • Last visited

Everything posted by Fblade1987

  1. well please bear in mind all I am a weakling when it comes to shell scripting but this so do it for you ^^ #! /bin/bash userId=19035607 view=Online wget 'http://friends.myspace.com/index.cfm?fuseaction=user.viewfriends&friendID='$userId'&view='$view -q -O test.html egrep -o 'class="msProfileTextLink"[[:space:]]*title="([^"])*"' test.html > temp grep -o '"[^"]*"$' temp just put your userid where user id is and what type of friends list you want to check out on the view then just run :D
  2. can anyone help me produce one of these my brain is mush alately and just cant figure the logic out
  3. sorry if this may seem like a really daft question though, but what would i compile it too for it to work on all OS's?
  4. Hey guys, I recently bought myself a cheap knock-off ipod shuffle, so it for a £2 and couldnt resist :P , however I've noticed it doesnt actually shuffle the songs it just plays albums/folders through and then onto the next. This got me thinking I could simulate a the shuffle experience by somehow randomizing the file names and moving all the files to the root of the mp3 player, but so that i would be able to reconize what songs are what when looking at them on a computer have something that will de-randomize the files back to their orignal state. Is there an script that could do this? or if not can anyone recommend a good language i could use that will work on all OS'S? and also could someone help me knock a quick and dirty one togther? Thanks matt
  5. Thanks a lot for this guide and taking the time looking on google, however the guide you provided and looking over the the other documents, they don't work :( as I said in a previous post this must be down to some daft file permissions on it as I'm on 2.1, and after looking through those documents you've provided they seem to back my theory up. It seems that I'm out of luck and may be best to just use the method TomB says, which is just itunes and only use it to use for syncing with ipod and use another music app to listen. Thanks again though, and also sorry to anyone I annoyed.
  6. I know I've probably set my self for a world of flaming, but hey said I was sorry and explained myself, however still think I will get flamed from this point forward :P but I'm strong Well I've tried downloading from web and I can't seem to download any music, so that idea maybe out of the window? As for ssh I can see how that may work, but does anyone know where the folder is for the music and videos? I can't seem to find it anywhere As Swathe's reply I didn't know you could actually turn that service off as, it seemed to be the case in the past with older gen ipod if I turned that off when I come to using my ipod with itunes, it would always fail to find the ipod, or come up with an error. But I will give it a try with the itouch and will let you know. thanks
  7. Okay, well sorry I must admit was hungover the morning I wrote that so my temper was some what limited, and you must see it from my point how that post seems. The usual case of a post like that is some immature fanboy, or someone who has total disregard for topic at hand and 9/10 thats the case, well it is sure the case for me in other forums.( I know welcome to the internet.....yada yada yada). I was just out for some advice. As for the reply I have tried that but itunes noob here is I'm fed up of itunes automatically starting when I attach the ipod, and for some strange reason(the reason I want to get rid of it) even though I close Itunes 5 mins. later its starts back up, which ok 77 mb memory may not be much to some but on a gig and half RAM when your in middle of doing graphic rendering is not good at all... thats where the computer freezing comes from, I just thought I could get rid of it all together and just use something basic such as foobar but obviously not. I do have my Ipod jailbroken but how would I go about doing something like this as I can't figure how to see the ipod music files without actually being on itunes?
  8. Well why don't you use the original Linux or XP Home that was originally intended to run on the eeePC.......IT WORKS!!!!! I Think maybe why you have xp on is it's better suited to your needs? am I correct? I don't want the bloatedness of Itunes, its not suited to my needs, as i would want something as basic and fast as foobar!!!! I don't want all this backing up your ipod, getting genius data(yes i know that can be turend off), or working out gappless play back and when ITUNEs uses 77,120K MEM usage well i want something a bit smaller on the load! Next time you think your posting something that's Helpful think........As that to me is just a mindless excuse to get you post up unless you was trying to be helpful then errr..... thanks <_<
  9. that's one of the programs I have promised i will never go on it
  10. Thanks, I'm actually thinking of just grabbing my old g4 mac mini out of the loft to do it but have no sockets so that's means unplugging my computer to plug mac in ¬_¬ which by the time it takes me to do that i may as well have waited for itunes to load so its a bugger really lol
  11. hmm I'd think that may be waaay over complicating things, it wouldn't be so bad but i'm using touch 2.1 :( which is stopping the file browser that use to work.
  12. arghhhhh me harties alass th yami she not work with the ipod touch (thats my pirate talk over) but yeah Yamipod seems to be incompatible with ipod touch will try others and let you know
  13. do these work with Ipod touch? I would try them now but I'm at work so sadly can't :(
  14. that's it fed up with itunes its using too much of my resources, slowing my machine down to the point cursor stops moving sad.gif so what I'm asking is there alternatives I can use to do the following tasks. A - Grab latest vidcasts and put them on, does not have to be vidcasts from itunes store or itune specific I don't mind go fetching the rss feeds. B - the most important one allow me to transfer music across. that's it really rest can do manually on the ipodtouch thanks for you help matt
  15. Hey guys, At working I have a Virtual Server image Mapped to a Portable HD which I take around diffrent machines and install a copy onto that host machine, however with doing this I alway have to start the Image up on each machine and configure the Ip and computer name of each one so I do not get any conflicts, which can be very impractical for me. What I'm asking is, is there anyway of getting the virtual pc to easily and quickly find the machine name that it's hosted on? as then i could set up a script that will automatically assign the right IP and Computer Name. I know I could achive this by using loopbacks but the setting up of a loopback, I mayt as well just configure the IP and Name Manually thanks for the time Matt
  16. Hi, setting a server up and just would like to know how I can set it up so that it allows php or apache to return the errors that the script causes mine just seems to show a blank page? also in the mean time can anyone tell me what wrong with this script &lt;?php function CheckSite ($host,$timeout) { if (fsockopen(($host, 80,null,null,$timeout)) //check site exists on port 80 return TRUE; else // else check site is open on port 8080 { if( fsockopen($host, 8080,null,null,$timeout)) return TRUE; else // if both Fail Return False return FALSE; } } $host = $_GET['host']; //grabs host from query string $timeout = $_GET['time']; //grabs timeout value if (($timeout &lt;= 120) &amp;&amp; ($timeout &gt; 0) ) // if the timeout variable is below 2 mins and greater then 0. it will commence { if (CheckSite($host,$timeout)) $result = "&lt;b style=\"color:#006600;\"&gt;All Systems Go site Connected&lt;/b&gt;"; // shows site resolves else $result = "&lt;b style=\"color:#FF0000;\"&gt;BOOOM!! Site Not Connected&lt;/b&gt;";// shows site does not resolves } else // if higher show error $result = "&lt;b style=\"color:#003366;\"&gt;Error: Timeout set too high!&lt;/b&gt;"; ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt; &lt;title&gt;Ping - &lt;?php echo $host;?&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;P&gt;Ok so we done the work for you here are the results &lt;br/&gt; &lt;?php echo $result;?&gt;&lt;br/&gt; &lt;/P&gt; &lt;/body&gt; &lt;/html&gt; thanks in adavance Matt
  17. just to let you know guys managed to figure it out the forcing ads if anyone's intrested. what i did was make the htaccess do both prepend and an append, php_value output_buffering 4098 AddType application/x-httpd-php php AddType application/x-httpd-php html AddType application/x-httpd-php htm php_value auto_prepend_file '/prepend.php' php_value auto_append_file '/append.php' then had two php file the first(prepend) opened a buffer &lt;?php ob_start(); ?&gt; then in last php (append) i did what i needed to do and echoed it out &lt;?php $str = ob_get_clean(); // code to find &lt;/head&gt; or &lt;body&gt; // code to insert banner insertion javascript into head. Or insert banner into &lt;body&gt;. // code to put $str back together around both $ad = ("&lt;body&gt;&lt;div style='background:#f6f6f6;'&gt;Hello world&lt;/div&gt;"); if (! strstr($str,$ad)) { if (strstr($str,"&lt;body&gt;")){ $result= str_replace("&lt;body&gt;",$ad,$str); } else{ $result = "hello worldlldldldldlldldl&lt;br /&gt; &lt;br /&gt;" . $str; } } Echo($result); Ob_end_flush(); ?&gt; hope that helps other people other then me
  18. would you mind elberating more im not quite sure you mean? do you mean make a base file that takes in the source(clients page) and the ad page (header.php)and places them both in iframes? or am i missing the idea here? and wouldnt that mess up the design say on something like wordpress? as im after doing on every single after some thought make it look like everysites part of the same network so to speak. thanks matt and eman7613 thanks after some more thinking i may just run ssh over say port 8080 or something
  19. thanks for the reply, with what you said i went a tried this tutorial ( http://www.namepros.com/webmaster-tutorial...resellers.html) but it dosent work get a 404 saying cannot find <address>/header.php/index.php any ideas? also As I can't move the forced content using the old method is there anyway i can sort it out so it's valid html? thanks alot matt
  20. I've seen somewhere on the net that it is possible to make it a portable flash drive, somebody even used it as a secondary HHD for there EEE pc. If I can remeber the links I will post them here for you. But yes it is possible to use it as a portable HDD but that all depends if you have messed the drive up, from the shock of it failing down all them stairs ^_^ You could alway just do what I did today :P, which was take it back to apple they will replace it if it is still under warranty..........best thing is i bought mine from 2nd hand shop for half the price!
  21. Hmmm i may try that but dont I have to install hamachi on the machine im using aswell as the server?, that wouldnt be really a possiblity? aswell i have the forced content thing working by using a .htaccess file my question now is how can i get to add at the very top instead of the bottom this is he code i have so far this is the header.php &lt;?php echo "&lt;div style='width:100%; height:20px; background-color:#f6f6f6; padding: 0 0 5px 25px;'&gt; Hosted By Wheresmy.tv&lt;/div&gt;"; ?&gt; and this is my .htaccess file php_value output_buffering 4098 AddType application/x-httpd-php php AddType application/x-httpd-php html php_value auto_append_file '&lt;address&gt;/header.php' thanks matt edit Also noticed when it gets placed in the footer it's out side the </html> tag so this wouldn't validate is there a way i can shove it inside the html tag?
  22. thanks forgot about that whoops newb anyways got it all to work now had to reinstall php and make sure it ran the dll not as cgi but all works now thanks :D
  23. kool thanks btu i dont think it work i tried the windows code you provided and it doesnt stop loading till it times out. edit just tried this i can't seem to get it working i looked in the error log and this is what it said, can anyone make any clue of it?
  24. thanks for the links but not fully read the 2nd one yet, but from first glance is that not for compiling apache not the modules? Thanks for the 1st one that will help out tons well thats why i asked the question as i don't even know where to start producing script that forces content in. and over the ssh I was doing it this way as would like access to my server where ever i go and the only ports that always really open are port 80, port 21 and port 8080 which i am using atm so unless theres another port thats always open that would be useless to me. thanks matt
  25. Right so I have three Q's in totally and i thought instead of creating three seperate threads i'd post it in one Q1 I was wondering if there's a way to always place content into any webpage a user uploads, you know like free web hosting do? It's just i offered to host some work mates portfolios, in return for them to link back to me, however I feel that it would be much better instead of leaving it up to them to put link back to me is create a little bar at the top of the page that links back to me. is there an application i can run on my server to do this or would i have to do this manually for each page? Q2 What it is I want to be able to run say a console application, through my webserver on apache. I know it a secruity hole so I ask how do I first of all set up apache to allow .EXE to run, and then how to do it so say a .EXE will disgause(sorry for spelling) itself as say a .SOB. So I call something like blah.com/send.SOB. this is currently the code i have For a test console app(written in delphi) program Project2; {$APPTYPE CONSOLE} uses SysUtils, ShellAPI, windows; var S: array[0..255] of char; begin windows.GetEnvironmentVariable('QUERY_STRING',@S[0], 255); writeln('&lt;html&gt;&lt;body&gt;'); writeln('Query='); writeln(s); Writeln('&lt;/ br&gt;Executed&lt;/body&gt;&lt;/html&gt;'); shellexecute(0,'open','notepad', nil, nil, SW_SHOWNORMAL); end. I've Tried this on a mate custom built server application, and all he dose is a simple config edit such as this [.exe] CodeBase= [.snd] CodeBase=c:\www\localhost\Project2.exe So all that basically does is will run the .exe on the server but if a .snd is called it will run the code above. I know this is not as easy on apache thats is where i ask you for help how do i achive this? AND LAST BUT NOT LEAST Q3 I've noticed that alot of modules for apache need compiling with linux so how do us people who have a windows apache box go about getting these modules to work on our system can it be done or what? thanks for your help Matt
×
×
  • Create New...