Jump to content
xisto Community

Pavarr

Members
  • Content Count

    8
  • Joined

  • Last visited

Posts posted by Pavarr


  1. I myself have a standard MP3 player that you plug into a USB slot and you then transfer your songs. But how does this work because it seems pretty cool to carry around?

    1064336168[/snapback]


    It works pretty similar - it's got a slot for the relay cable on side. You just plug the relay cable into the slot and into USB, and transfer songs :)

     

    Sadly, when there is Linux (reiserfs) on it, it won't work as a player :P But you're right, it's fun to say, "hey guys, I've got a Linux in my pocket" :D

     

     

    When I was creating this topic, I wasn't actually thinking about how small can Tux be, but into what (unusual) devices it can be stuffed into - mp3 players, like iPODs seem to be a logical choice :P

     

    @Shadow: I've got my computer with both Win2k and Linux on it, and use both equally - and yes, there are good things to Linux, I bet that more to Windows :P


  2. First of all, we have to store our Google news in variable:

    $googlenews = file("http://news.google.com/news/en/us/world.html");

    Then, we get ourselves a table, containing news' link with title, popularity on Google News, how old is the news, and where it has been found by Google:

    $popularity = 0; // table indexfor($i = 46; $i < count($googlenews); $i++){ // real news start at line 46$all = explode("<font size=",$googlenews[$i]); // it makes it easier to retrieve headersfor($j = 0; $j < count($all); $j++){$act = $all[$j]; // actual current chunk// a bit of cleaning up$act = str_replace("</tr>","",$act);$act = str_replace("</td>","",$act);$act = str_replace("</table>","",$act);$act = str_replace("</b>","",$act);$act = str_replace("</font>","",$act);$act = str_replace("<nobr>","",$act);$act = str_replace(" ","",$act);$act = str_replace("<br>","",$act);// enough cleaningif(stristr($act, "-1>") && stristr($act, "<font color=#6f6f6f>")){ // checking for markers of _real_ news	$where_time = str_replace("-1><font color=#6f6f6f><b>","",$act); // getting where and time as one string	$gdzie_czas = str_replace("</nobr>","",$gdzie_czas); // another cleaning routine	$where_time_arr = explode("- ",$where_time); // dividing to time and source	$popularity++; // getting current table index                $where = $where_time_arr[0];        $time = $where_time_arr[1];        // we know now where news was found, let's get news title & link	$news = explode('<td valign=top>',$all[$j-1]);  // right things be right :)        $true_news = $news[1];	$news_array[$jak_dawno] = $where.'|'.$time.'|'.$true_news; // table input}}}

    Now, that we have got the array with pure information, we can do virtually everything with it, for example:

    foreach($news_array as $value){       $values_arr = explode("|",$value);       $where = $values_arr[0];       $time = $values_arr[1];       $news = $values_arr[2];       echo "$news - found in $where $time<br/>";}

    We can also search it for keywords, or do with it something like that.

    I have to add, I haven't yet developed a simple and always-working way to exclude the link from the news title - sometimes there is unknown bug and there are residual chars form link :/ But even without it, it's fully functional.

  3. For me, Google is still the best search engine ever made, when it comes to spyware or trojans you just have to use Firefox :D and some antivirus with connection scanning option.And other Google services? I don't imagine passing geographics' exam without Google Maps, neither a world without Google Groups, nor e-mail without GMail...Whoa. Am I addicted to Google? :D


  4. Well, if he doesn't want to use CMS, don't force him... I personally enjoy writing sites from scratch, and in such way was my homepage (that I want to host with Xisto :D ) done - and it didn't turn out that bad, see for yourself...

    However, if someone doesn't know how to use HTML or XHTML pretty good, then maybe CMS isn't all that bad. XOOPS' nice, so is jPortal - but it's in Polish :/ and I personally don't like PHPNuke at all.

    Will you finally give us address of your site?


  5. I know there are distributions of Linux that fit onto one single FDD. But they are specially designed to do so. Have you managed to stuff your ordinary-size Linux into something that was never meant to serve under ReiserFS? I did.

     

    It all started with Philips MP3 player HDD065 (uncertain of model, never mind), like this one:

     

    Posted Image

     

    It's got about 2 GB of disc space, pretty much. I took my copy of openSUSE 10.0, cut it up a bit so it was about 700 mb big, used 100 mb swap and praying to lord I ran an installation.

     

    And after restarting my PC, my family thought I finally got freaked as hell, 'cause I jumped up yelling "it did it! it did it!" in front of screen with openSUSE 10.0 start-up screen on it...

     

    Of course, Linux is now long-gone from my MP3 player - all in all, it's meant to be a player not a HDD - but I'll never forget it.

     

    And did YOU ever try to stuff your Linux into something really small?

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.