profetas

Members
  • Content count

    146
  • Joined

  • Last visited

Community Reputation

0 Neutral

About profetas

  • Rank
    mad 1337

Contact Methods

  • AIM
    AOL you must be joking
  • Website URL
    http://
  • ICQ
    77230404
  1. mem = mem.replace(/[^\.\\\:\/\'\(\)\"\_\?\=\%\&\;\#\@\- a-zA-Z0-9]+/g, " "); \. \\ \: \/ \' \( \) \" \_ \? \= \% \& \; \# \@ \- 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 a-z A-Z 0-9 ]+/g, " " 26 26 9 global matching 17 + 26 + 26 + 9 = 78 VS 126 - 32 = 94 78 <> 94
  2. In which world
  3. tiocsti = white scorpion
  4. First you have to check if the parallel support have been compiled . #lsmod
  5. http://www.cygwin.com/ there you have gcc. good luck
  6. If you don't want re-compile the kernel, I don't see many solutions left
  7. Most advanced text editor in linux, will accept regex in the replace or find options. such as VIM, EMAC or KATE
  8. I have some PERL here, which is similar to PHP, I hope it helps first you create your HTML and all the forms. make sure you use the POST method it is a bit more secure in the action you place the link to the script below note that you have to set the database and the other parameters to fit yourself !/usr/bin/perl -wT use CGI qw(:standard); use CGI qw(param()); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use strict; use DBI; my $database = "new"; my $username = "username"; my $password = "your pass"; my ($dbh, $sth ); here you start the html and "unpack" the form print header; print start_html("Add page"); print "<link href=\"http://www.example.com\style.css\" rel=\"stylesheet\" type=\"text/css\">"; my %form; foreach my $p (param()) { $form{$p} = param($p); } 3 basic function. connect_db(); add_row(); disconnect_db(); Note that, you'll have to change the query_str to fit your database, the my $query_str is a SQL command, which will be executed with $sth->execute(); sub add_row(){ my $query_str = "insert into $form{table} (lang,proverb) values('$form{lang}','$form{proverb}');"; print " Query:" , $query_str , "<br>"; $sth = $dbh -> prepare($query_str); $sth->execute(); print "Row Added </p><br>"; } Simple connect and disconnect (note some people use die for the errors) sub connect_db(){ $dbh = DBI -> connect("DBI:mysql:database=$database;host=127.0.0.1", $username, $password); if($dbh){ #if connected print "<p>Connected to database <br>"; #print success message } else{ print "ERROR: Could not connect to database:<br> " . $DBI::errstr . "\n"; } } sub disconnect_db(){ $dbh -> disconnect(); #disconnect from database print "Disconnected the database</p>"; #print success message print end_html; } I don't know much PHP, sorry for that. Profetas
  9. first you have to check if you have the modules compiled and loaded. #lsmod Then you have to decide the printer server you want to use,
  10. Not really, the text version is to be used in low spec pc, it still gives you a user interface, and it is almost as easy as the GUI installation. Only some process will get more complicated (fdisk etc..)
  11. It seems you don't have the node. you can #su ******* /dev/MAKEDEV ALL if it says you don't have the MAKEDEV then download http://www.slackware.com/pb/download.php?q...2.3.1-noarch-21 and run the pkgtool and install that pkg. that pkg will install (just create all the devs in your /dev ). NOTE: there is a script in the /etc/rc.d/ which creates the nodes at the boot, which you'll have to edit.. then try mount /dev/hdd /mnt/cdrom it will not work , then you try mount /dev/sr0 /mnt/cdrom or mount /dev/sr1 /mnt/cdrom or mount /dev/hdd /mnt/cdrom again. If you had specified the CD -ROM (if it is IDE, SCSI etc..) I could have given you the mknod command.
  12. if your cdrom is scsi it will be /dev/sr0 or /dev/sr0 else you can cat /etc/fstab to find out or cdrecord -scanbus or cat /var/log/messages |grep CD if you don't find the dir , that means, you don't have the dev or your kernel didn't compile the cd support to create a dev you may use MAKEDEV or mknod you need to know your cd driver spec before you can create the dev, or you can just try until you get it.
  13. I've heard some people talking about having 2 OS in the same machine is that possible?
  14. I have been doing some hacking in my makefile program. Well it didn't take long for me to compile a makefile that doesn't work. and now I can't compile a new makefile because I messed the makefile. well I know that there is a way, I had read something on how to install the makefile without makefile :-) but now that I need it I can't find it. any ideas? Profetas
  15. Hi Jera There are many things that could make you firefox crash, my flash server always make my firefox freeze. And for the radio show. I would say http://audio.textfiles.com you can find many shows there. I would also suggest the: http://www.seti.org/site/pp.asp?c=ktJ2J9MMIsE&b=181442 http://www.thenakedscientists.com/HTML/shows/Archive.htm Profetas