Image 01
profile-image

paran0id

Para N0id
Glassified KDM

KDM4 Themes by painkiller101 17 comments

Thank you for this awesome KDM theme! I have, however, a suggestion :)
Because the login button next to the username and password field is grayish, it looks (to me) like it is disabled somehow. So my suggestion is to add a little color to it.
Maybe give the triangle inside the button the same blueish color as the Menu button? This way you would not need an extra color. - May 11 2009
Customizable Weather Plasmoid (CWP)

Plasma 4 Extensions by jaegerschnitzel 1069 comments

Hi and thank you for this nice weather plasmoid :)
When I tried your plasmoid for the first time it would not update its weather data after the initial fetch. Maybe it is because I have to use a proxy to connect to the internet.
However, I took a look at the source code and with one small change to the update-thread code the plasmoid did fetch and display updates to the weather data.

I have copied the diff at the end of this comment, but you can also just download the file from my Mediafire acount: http://www.mediafire.com/?ycltcntniwy

Maybe you find it useful:

--- cwp-0.9.7.orig/plasma-cwp-update-thread.cpp 2009-04-01 16:01:40.000000000 +0200
+++ cwp-0.9.7/plasma-cwp-update-thread.cpp 2009-04-01 02:38:00.000000000 +0200
@@ -1099,7 +1099,8 @@

qRegisterMetaType<KIO::filesize_t>("KIO::filesize_t");
qRegisterMetaType<KIO::MetaData>("KIO::MetaData");
- KIO::Job *getJob = KIO::get( KUrl(url), KIO::NoReload, KIO::HideProgressInfo );
+ KUrl my_url(url);
+ KIO::Job *getJob = KIO::get( my_url, KIO::Reload, KIO::HideProgressInfo );
if ( KIO::NetAccess::synchronousRun( getJob, 0, &data_tmp ) )
{
*data = data_tmp;
- Apr 01 2009
simple weather forecast

Plasma 4 Extensions by biophysics 204 comments

Hi and thank you for this nice weather plasmoid :)
Because I have to use a proxy to connect to the internet version 1.2 of the plasmoid would not work for me at first. However, I took a look at the source code, reenabled the proxy support together with one small change to it and the plasmoid did work again (through my proxy and at least for me).

I have attached a copy of the diff at the end of this comment, but you can also just download the file from my Mediafire acount: http://www.mediafire.com/?xugymvdoyew

Maybe you find it useful:

--- plasma-weatherforecast-1.2-kde-4.2.orig/plasma-simpleweatherforecast.cpp 2009-04-01 15:58:26.000000000 +0200
+++ plasma-weatherforecast-1.2-kde-4.2/plasma-simpleweatherforecast.cpp 2009-04-01 02:08:26.000000000 +0200
@@ -99,24 +99,26 @@
// proxy support
// proxy support
// proxy support
-// QString proxy_xml_file = "http://weather.yahooapis.com/forecastrss?p=" + zip;
-// if(tempType == "C")
-// {
-// proxy_xml_file.append("&u=c");
-// }
+ QString proxy_xml_file = "http://weather.yahooapis.com/forecastrss?p=" + zip;
+ if(tempType == "C")
+ {
+ proxy_xml_file.append("&u=c");
+ }

//The next line clears cache for the file
-// KIO::http_update_cache(proxy_xml_file, true, 0);
+ KIO::http_update_cache(proxy_xml_file, true, 0);
// proxy support: for some crazy reason the update does not happen properly !
// so I have enabled both wget and proxy support
// FIX ME
KIO::file_delete(QDir::homePath() + "/.weather.xml", KIO::HideProgressInfo );
-// KIO::file_copy(proxy_xml_file, QDir::homePath() + "/.weather.xml", -1, KIO::Overwrite | KIO::HideProgressInfo);
+ KUrl src(proxy_xml_file);
+ KUrl dst(QDir::homePath() + "/.weather.xml");
+ KIO::file_copy(src, dst, -1, KIO::Overwrite | KIO::HideProgressInfo);
//
// Now the normal wget...
// Now the normal wget...
// Now the normal wget...
- QProcess* process = new QProcess(this);
+/* QProcess* process = new QProcess(this);
QString wget_xml_command = "wget -q -t 4 --random-wait -O " + QDir::homePath() + "/.weather.xml http://weather.yahooapis.com/forecastrss?p=" + zip;
if(tempType == "C")
{
@@ -125,6 +127,7 @@
process->start(wget_xml_command);
process->waitForFinished();
delete process;
+*/
}

void Plasma_Weather::parseData()
- Apr 01 2009