Archive for the ‘Tech’ Category

Mythweb weather and doppler radar

Thursday, March 5th, 2009

mythweb dopplerI previously posted my fix to get a partial fix to the weather page in MythWeb, but the doppler radar image wasn’t there… after further perusing i found a fix…

sudo ln -s /var/www/mythweb/data/ /var/www/

Seems this one was actually throwning a nice error in the Apache2 error.log…

[Thu Mar 05 05:02:58 2009] [error] [client 192.168.0.269] File does not exist: /var/www/data, referer: http://tv/mythweb/weather

Wheee… MythWeb weather works for me now (Mythbuntu 8.10)

Fix MythWeb’s Weather page (partially)

Thursday, March 5th, 2009

mythweb weatherJust installed Mythbuntu and was playing around with the MythWeb feature, really sweet. But, the weather page was only showing a horizontal rule.

Did some poking around with the module code. In the file /var/www/mythweb/modules/weather/handler.php It read:

// Get configured WeatherScreens from the database
$sh = $db->query(’SELECT screen_id, draworder
FROM weatherscreens
WHERE hostname=?’,
$_SESSION['settings']['host']);

Changing the last line to the following like I found in a similar section in init.php to:

hostname);

actually showed me my current conditions and three day forcast… the doppler radar image is missing though.

Hope it helps someone out there.

Windows Firewall Error 5

Saturday, January 24th, 2009

Just reinstalled Windows XP with SP3 slipstreamed via nLite. I use a router so normally have the firewall disabled. Needed to connect directly to the net for another reason and tried to enable the Windows Firewall. Went to control panel, clicked on firewall, was greeted with the normal message telling me it was not on and to change settings i would need to enable it. I told windows to make it so, and received an error saying it couldnt be done.

So, i went into services (services.msc), scrolled down to Windows Firewall/Internet Connection Sharing (ICS), right clicked it and chose start… received an “Error 5 Access is denied”… wtf?!?

Next i was off to google, came across a LENGTHY thread… http://forums.techguy.org/4034641-post37.html … that is the portion of the thread that finally solved it for me.

Basically i was somehow missing some registry keys…

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\SharedAccess\Parameters\FirewallPolicy\StandardProfile]
“EnableFirewall”=dword:00000001
“DoNotAllowExceptions”=dword:00000000
“DisableNotifications”=dword:00000000

After entering those, i rebooted and all was well.

IPConfig

Friday, January 18th, 2008

The default output is to display only IP address, subnet mask and default gateway for each adapter bound to TCP/IP.

Adding /flushdns to this command will purge the local DNS resolver cache, this is handy when a website has VERY recently moved. I learned this command after my webhosts automatic DNS update failed renewing my account. Other computers in the house could see the website, but this one machine would not. After flushing its DNS cache, all was well.

Another switch is /displaydns, this lists all entries in the cache (including recent entries from the hosts file).

In Linux, the nscd daemon manages the DNS cache. To flush the DNS cache, restart the nscd daemon. To restart the nscd daemon, use the command `/etc/init.d/nscd restart`.

Hello world!

Sunday, August 19th, 2007

Here i will place mainly stuff i want to remember as i try out different things on my PC or other technological stuff. Take what you want and leave the rest :)