General :: Alternative 'cleaner' Solution Instead Of Rewrite
Mar 14, 2010
i have the following script which takes as input parameter a webpage and extract the emails from it. The results are correct but i was wondering whether i could rewrite it in a better, 'cleaner' manner. I think my for loop is a bit. primitive and also each email is printed twice
i am a fresher to linux. presently i am using CentOS for getting some experience in that. but i have a problem with internet connection using in CentOS. i am using prolink USB ADSL2+ modem (H5200U). so, i request from all readers to give alternative answer.
Not exactly new to Linux but - over the years I have been appalled to find hundreds of configuration files for every known program/service in Linux with millions of lines of useless comments that you have to endlessly scroll up-and-down in a text-editor to find anything of value and then make sense of what you need to configure/change, etc.
Is there an automated way to clean up any given configuration file and get rid of the "filler" stuff ?Seems like a shell script should be able to accomplish the task by getting rid of all lines that start with # ..
I only want to match the directories ape/ and apes/ but I think it is matching any directory that ends in "ape" or "apes" or maybe does it match any string containing those characters in any order? I am not great at regex, and have read alot, but still not sure if I understand this correctly.
Now, I use Fedora Core (version 8) with core linux OS 2.6 I have some file data with size about 2G and I want to burn (write) this file to DVD rewrite.
I know linux OS can install software to burn data to DVD, but I don't have permission to install more software. I only use command line over Terminal (Gnome Terminal).
I would like to be able to do what the package cleaner does in Ubuntu Tweak. What sort of command line magic is needed to clear unused config files, old kernels, cache and packages?
why my fedora 11 computer shows an application that launches every couple of minutes called launching HTTPcache cleaner? i searched installed programs and i cant find that in annything ive installed
Is there a way to clean up OpenSuse's applications menu with alacarte? It takes forever for me to find an existing menu item if I want to change or delete it, but deleting existing pre-defined groups (such as "Amusement", "Art and Culture", and "Games for Kids") doesn't work. They simply won't delete.
I am writing some code in matlab and I would like to do some reading of how to write cleaner code and how to name variables and write comments. One more questions. Let's say that I find for example a file that has really nice structured comments. For example specific format commenting function inputs, outputs author code. Can afterwards copy and paste and use someone's comments format or this is might some copyright problem?
I get this : Code: [root@Fedora philip]# gedit (gedit:3132): EggSMClient-WARNING **: Failed to connect to the session manager: None of the authentication protocols specified are supported
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.)
GConf Error: Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See [URL] for information. (Details - 1: Failed to get connection to session: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.) I now tested it being not root and it's ok:
Code: [philip@Fedora ~]$ gedit [philip@Fedora ~]$
No error when I'm not root. So it's only when I become root and run gedit in terminal I get errors, why?
Any-one using the Linux version of Click-Repair? [URL] I have been trying Gnome Wave Cleaner but no matter how I configure it there is unacceptable deterioration of audio quality when used in any auto modes. In the past I have trialled Wave Repair and found it acceptable though they have no Linux version. [URL]
Can I expect an improvement over GWC using Click-Repair ? for the outlay of some $$$, or is GWC the best I can hope for using Ubuntu. Or, is it back to the tedious 'manual de-click' for every LP.
since arch has started using python3, bleachbit is broken, so i am looking for a system cleaner to replace it. i need something that will overwrite file contents and clear firefox cache + the all the normal functions of a system cleaner.
Macbook air as local in-hands computer, connected at home over 802.11G->Verizon FIOS 15mbit down/5mbit up fiber. Also sometimes from other connections fast (university) and slow (hotels etc).Dell poweredge 750 server remotely wired GbE through 25mbit down 15mbit up fiber
So far I've tried to just ssh -X poweredge and run X apps, redirecting them to my local X server on Mac OS X. This worked great from my university's connection (over wifi) but worked poorly at home. Apparantly X protocol is very sensitive to latency.. windows wouldn't accept button presses for instance, would have to click many times. I've heard there are X settings and SSH settings I can use to decrease latency - does anyone know more about these??? As far as security, all I actually care about is encrypting my pw as I log in. It's not a sensitive situation. I suppose a solution would be to set DISPLAY on the Linux box to my IP and port except that it often changes and I'm always behind firewalls (some that I can put holes in like home, some I can't like school)I've also tried VNC which works "ok"
When using windows, which I haven't tried yet, are my options to remote desktop over SSH and VNC over ssh (run VNC server on XP) - or are there any more? What's likely to work best?Looking for an answer to tweaking the latency and also any completely fresh ideas or suggestions of tools that may be better suited to this situation
I burned the Knoppix ISO to a DVD in roder to boot my comptuer which has BSOD problems...
I've been told a couple of solutions that I couldn't access due to safe mode just going into a BSOD.
So I found Knoppix and it's great. but it won't connect me to the Internet. I use a router and it detects the connection i use. I click on it and type in my WEP key which I know is correct and it tries connecting. After a few seconds the screen pops in again asking me for my WEP key again.
I am a complete newbie only had pc with linux installed for a week, for some stupid reason we had 8.10 pre-installed and decided to upgrade to 9.04 now we can't get past the gnome login screen asking for user name and password. Linux was already installed by mesh with a userename and password which we didn't change,we are really stumped as we can't get past this logon screen.
I've just installed phpmyadmin on my bioLinux. When the logo screen shows http://localhost/phpmyadmin, and I try to log in it appears: #1045 Cannot log in to the MySQL server. I've tried all possibilities. I install and reinstall it with the Synaptic Package manager, with and without password (using 'root' as username).
I am using f11 and cannot run any VCD. I tried to run it via totem, which says "Could not open location; you might not have permission to open the file." but I have the read permission for sure. while on mplayer, it says "seek failed" and exits. any solution?
The solution should be capable to use intranet only (no communication should traverse the inernet). It would be of an advantage if it would support conferencing. And if it's possible it'd be fine if it'd be free.
One solution which comes to my mind is jabber, but I do not have any experience with it... what's your oppinion on that? What other solutions are there?
I just installed Ubuntu 10.04 on my Mom's HP laptop. She loves the way I set things up for her. It's a one click solution for accesing her banking, Facebook, Email and SKYPE. I would like to be able to add something else to the panel whereby she would just click once and a telephone pad would appear for her to dial phone numbers so that she can call people from her computer.
I have been using various operating systems on this computer. At the moment I am using AntiX Mepis. I switched to Linux because my Windows used to freeze all of a sudden after a few hourse or even minutes. Now my Linux was quite stable for a few days but again, it freezes in a few minutes when I use a Window Manager. In the terminal without using any Window Manager it never freezes. Can anyone tell me the solution to this? code...
i have Elastix (( Centos )) machine runing and have many configrations i need to take iso iamge from it and use it directly for any othe machine ? How to this step bby step ??
I have a LAMP server configured. Yesterday, I had a test.php file displaying everything fine. I transferred some files over to the new server and now I can't connect to the test page, webmin, or phpmyadmin. I think it has something to do with Apache but Im not sure what to do next. I have restarted Apache, MySql and all services are running.
I've decided to install Fedora 14 on my Late 2008 Macbook Pro (model 5,1), but when attempting to boot from the live cd, all I get is the main boot menu, then I briefly get a grey screen with a blinking white cursor, then the screen just goes black. The computer is still running, and I can still hear the cd drive, but I have no video. I've seen the tutorials for installing Fedora 14 on a 5,1 macbook pro, and I know it's been done successfully with no mention of such issues.
I have double boot windows xp and linux mint 10 on a dell desktop. from the start, linux mint would not completely shutdown. the windows xp shuts down completely. i have tried the commands sudo poweroff, sudo telinit 0 and sudo shut down -h now. not one works. i also have updated to the dvd version and is updated on everything else.
i do not know how to go to bios or perform any programming tasks. may i then request that instructions, if any, be detailed?
Is it possible or wise to use a program like 'testdisk' running on an Ubuntu 32-bit system to rewrite the MBR of a Windows 64-bit system hard drive? I am only asking because I am cleaning someone's HDD after they got infected with a Trojan called "Dos/Alureon.A. They were worried that they might have to do a re-partition and clean install.
I want to redirect [url] to [url] how to do this? The only solution that came up is just redirect everything to a php file, and than ask the php file do the redirect..... I want to do it using .htaccess file instead of using PHP or CGI.
I am tired of watching fsck check my filesystem when my eeepc 901 shuts down abruptly due to a crash. I know that with a journaling filesystem, I won't have to wait for a check. However, I am well aware of the poor I/O performance of the SSD, so I can imagine using a journaling filesystem being even more frustrating, since there will be constant writes to the journal? I will buy a new laptop without such a crummy ssd someday but, is there anything I can do now, on the software side of things?