#!/usr/bin/python
# -*- coding: utf-8 -*-
import sys
import os
import cgi
import string
import feedparser
count = 0
print "Content-Type: text/html\n\n"
print """<PRE><B>WORK MAINTENANCE/B></PRE>"""
d = feedparser.parse("http://www.hep.hr/ods/rss/radovi.aspx?dp=zagreb")
for opis in d:
try:
print """<B>Place/Time:</B> %s...
I was a Windows user and used Wamp. Every time a PHP code failed, the browser would display something like this: error in line number xx.
I followed the installation of this tutorial and everything worked.
Now when code fail PHP just display a blank page.
Any sugestions?
(I'm using Ubuntu 10.04).
...
Whenever I open some help within eclipse I get a page saying:
Server Error. The following error occurred: [code=CANT_CONNECT_LOOPBACK] Cannot connect due to potential loopback problems
I'm running Ubuntu 10.04.
Any ideas what this can be?
UPDATE
Some commands outputs (some private info replaced):
$ ifconfig -a
eth0 Link enc...
Running Ubuntu Server 10.04 with Rails 2.3.4 and Webrick 1.3.1; our rails app runs fine when called via script/server -e production, but trying to test it as a daemon by calling it with the -d flag produces the following output:
=> Booting WEBrick
=> Rails 2.3.4 application starting on http://0.0.0.0:3000
Nothing is produced in the lo...
Hi,
I am using 'expect' to automate ssh password authentication. When I run the script in SunOS, I find the spawned ssh process gets killed once the below script is completed. This is not the case in Linux. How do we avoid it? Should we ignore the SIGCHLD signal somehow?
Is there anyway to determine through this script if spawned proces...
i need some good gedit theme, where did you get one ?
Thanks
Adam Ramadhan
...
[Edit]
I have reedited the previous question - since I had misunderstood what was causing the problem - and therefore the ample snippet I had before was a red herring. Thanks to wimdvx, I have a clearer idea as to what is going on.
First of all, I am using code that is base on this one, to handle IPN notifications from Paypal.
I was u...
I'm trying to write a cron job that runs a report, and emails the result to an address defined in my user's ~/.bashrc file. I had this working perfectly on Fedora, but when I switched to Ubuntu, my solution no longer works. The command my cron job currently runs is:
. /home/myuser/.bashrc; /home/myuser/bin/runreport
If I run that comm...
I'm trying to get the mysqlnd driver setup on php5.3.2 (default version) on Ubuntu 10.04 (Lucid). The PHP docs say that mysqlnd is compiled by default in the 5.3 builds. But I haven't been able to find a way to make it part of the aptitude build.
...
I don't at all like the default colorings on Mac OS X, but I love them on Ubuntu. What config files govern these things? I'm hoping I can just copy the relevant files from Ubuntu onto Mac OS X.
...
This is related to an ongoing issue that I'm having, where certain packages don't exist when I try install.packages in R 2.10 (which is what's available from Ubuntu 10.04 apt-get). This includes highlight and Rcpp. Does anyone know how to install R 2.11 on Ubuntu 10.04?
...
When you double-click a bash script, Ubuntu asks if the user wants to Display, Run, or Run In Terminal...
Is there a way within the script to determine if the user chose "Run In Terminal"?
...
I'm using Ubuntu 10 and trying out the below code in Firefox 3.6 and Chrome 5.
$(document).ready(function(){
$(document).bind("keypress", function(e){
alert("Pressed");
});
});
Surprisingly the above code works well in FF3.6. i.e. for every key pressed, I'm getting an alert box.
But in Chrome, i'm...
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
I have a Rails application and I am getting this error. I have no idea how to find mysql connect it to mysql.sock. I am pretty sure i can go into config/database.yml and set the mysql.sock but where is it or do I need to reinstall it?
When I do locate mys...
I am basically grepping with a regular expression on.
Now in the output i would like to see only the strings that match my reg exp.
In a bunch of xml files (mostly they are single line files with huge amomunt of data in a line), i would like to get all the words that start with MAIL_
Also the grep command on the shell should give only...
I'm having trouble with setuptools in a larger project where a python package has to be "constructed" from several debian packages (each containing a subpackage of the "main" package). Thus we decided to install the files manully instead of using "setup.py install", but we are unsure of the location to use. We first used a directory in /...
I recently install MediaWiki on Ubuntu 10.04 using all the default settings. I'm looking to install an extension. Where is the extensions directory located by default? Thanks!
...
I have created a custom task in symfony (1.3.6), running on Ubuntu 10.0.4.
I am generating urls in the task. This is a snippet of some of my code:
// In the custom task (lib/task/mySomethingSomethingTask.php)
protected function execute($arguments = array(), $options = array())
{
//create a context
$app = sfProjectConfigura...
I've been a fan of Monaco when I was a Windows user I would like to know if there's a free open alternative to that font (and possibly available in Synaptic Package Manger).
...
Whenever I fire up netbeans on ubuntu the locations of the panels from my last session is not saved, unlike the behavior on windows.
I installed netbeans using OS independent package not through the package manager, and placed the extracted folder to /opt/netbeans
Everything works ok, but for example the netbeans "Output" panel always ...