The Temple of Fu

code, systems and games

Slackware – What version am I running?

with one comment

I usually don’t run the latest release but I am instead only keeping my installed packages current. So how do you know which version of Slack you are actually running? Well here you go!

cat /etc/slackware-version

Hope this helps!

Advertisements

Written by lordfu

March 3, 2013 at 12:29 am

Posted in Linux, Slackware

Slackware – mplayer – no video when playing video from UI (the selected video_out device is incompatible with this codec)

leave a comment »

Hello again!

I decided to install Slackware 14. After install any movies that I double clicked on were opened and played but with no video screen! When executing the following command the video played just fine!
mplayer video_file

What I found was that I was getting an error of (the selected video_out device is incompatible with this codec). To fix this I went into mplayer preferences and set the Video device to use X11(XImage/Shm) and now videos play within the GUI via double click.

Hope that helps!

Written by lordfu

November 8, 2012 at 2:50 pm

Posted in Linux, Slackware

Slackware – Virtualbox – Network,Choppy Video and Slow IO

with one comment

I continue, like any nerd, to play with software and technology. My latest adventure has been to migrate my Slackware 13 desktop from VmWare to Virtualbox. I have used both multiple times throughout time, usually switching up when a new release comes out that ‘has the latest whizbang’ feature set.

I migrated my vm (post coming soon) to VBox but upon first boot I could not pull up a webpage or ping my router, set to Bridged network; problem 1 fixed.

Videos loaded painfully slow, Add more video RAM; problem 2 fixed

Videos still played choppy and opening a folder with many items was slow as well, basically any heavy IO task, set storage to SATA ACHI and add a second CPU; problem 3 fixed.

(image shows my added primary .vmdk attached to new controller adding second CPU and more Video RAM in same settings dialogs)

Now my VM is just as quick as a physical counterpart. Hope this helps someone.

Written by lordfu

November 4, 2012 at 9:36 am

Posted in Linux, Slackware

Procedure or function X expects parameter Y, which was not supplied.

with 3 comments

I have been tracking down the source of this error for about an hour and a half.

“Procedure or function ‘procedure name’ expects parameter ‘@parameter_name’, which was not supplied.”

This is happening when I call a stored procedure with parameters through .Net’s data connection to SQL (System.data.SqlClient) and also through a WCF client proxy. The only way I was even able to see that error was via SQL Profiler and by executing the code it captured but that’s because we do not have good logging setup on our WCF endpoints yet. After much pain and debugging I found that it was because I forgot to add (or accidentally removed) a critical piece when setting this up, so yes it all comes down to user ID10T error but isn’t it always.

m_cmd.CommandType = CommandType.StoredProcedure

Hope this helps someone, off to refill my coffee cup!

Written by lordfu

August 30, 2012 at 9:52 am

Visual Studio – Method Auto Comment (XML Documentation) Not Working

with one comment

Opened up a project that was started by a fellow developer at work, I got_set_to_write_code and wanted to do what all good developers do, they comment their code! 🙂
I needed to add a method comment which can be triggered by typing three ticks ”’. It stubs out

But it didn’t work, grrr. The fix:
1. Go into project properties
2. Select the Compile tab.
3. Check ‘Generate XML documentation file’

Now the auto comment shortcut should work.

Written by lordfu

July 31, 2012 at 10:33 am

Browsing, DNS and duplicate IPs Oh My!

leave a comment »

I recently upgraded to current and also more recently have built a new Windows server to use for work and development with my Slackware box being a virtual desktop running on a Windows 7 host . The last few weeks since I built my new server and upgraded my desktop to current have been a mixture of either being away for work or being without power for a little over 6 days due to massive Midwest storms. Both of these have left me without a chance to really configure everything fully to my liking.

So the last couple days I have been home and able to spend more time on my desktop and I noticed something any application which required network access was painful to work with. Everyone of them would ‘sputter’, sometimes work great for a few minutes and then freeze for a few then work great again etc but my host had no networking problems at all. I ran ping tests and noticed the same thing there, so I began troubleshooting and did the following
1. Check resolv.conf for valid nameservers
2. Disabled loading of IPV6 module.
3. Disabled IPV6 in Moz
4. Checked interface settings, then it hit me.

What’s the interface settings look like on my new Windows Server? Whammo, duplicate IP addresses. Once I adjusted the IP address on the server everything began working perfectly. This was an easily avoidable configuration error and took a couple hours to fix because I was certain it was due to the Upgrade to current or this being a weird issue with 64b Slack and so time was wasted researching that instead which I never should have assumed.

Hope this helps!

Written by lordfu

July 15, 2012 at 10:32 am

Posted in Linux, Other, Slackware, Windows

Dell Inspirion 6000 – ATI Mobility Raedon x300 (M24) – Windows Server 2008

with 2 comments

So I received a laptop from work that they were tossing around a year ago. It came with Windows 7 and was all setup and good to go, so it remained that way for a year. I went to install SQL Server 2005 the other day to do some development and wham, can’t install onto Windows 7, it must be a server class OS. I have Windows Server 2008 so I began the re-install. That went well picked up 99.9% of my hardware and Windows happily installed a Standard VGA Adapter driver for my ATI card which is an ATI Mobility Raedon x300. The problem with that is that it is a terrible driver and offers no good resolutions, 1024×768 was my best bet at 32bit. So off I went to find drivers. Did Dell offer any? NO!

As far as I know Dell has a deal worked out where they force customers to use their drivers, you know the CD that comes with your laptops? Well I have Windows 2008 on here and they are not to be found anywhere. This is how I made this work using legacy drivers and Mobility Modder. Mobility Modder is an application which will ‘mod’ your inf files to work with an updated and ‘unsupported’ OS (you know that deal between ATI and Dell).

1. Go download the legacy ATI drivers from http://support.amd.com/us/gpudownload/windows/Legacy/Pages/radeonaiw_xp.aspx

2. Download Mobility Modder from http://www.hardwareheaven.com/modtool.php.

3. Extract the legacy drivers. This is done by double clicking the installation executable and once it gets past the extraction point, cancel the installation. The legacy drivers are extracted to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc

4. You then install Mobility Modder and it’s requirements XML 6.0, .Net Framework (which on most modern systems are already installed). Also select turn off UAC, this does require a reboot.

5. Once MM is installed run the program and Browse to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc and click Modify (this can take a few minutes)

6. Once that is done you need to update your driver manually. This is done by

  • Device Manager
  • Select your Display Adapter
  • Right Click ‘Update Driver Software’
  • Browse My Computer for driver Software
  • Let me pick from a list of device drivers on my computer
  • Have Disk
  • Browse to C:\ATI\Support\10-02_legacy_xp32-64_dd_ccc\Driver\XP_INF
  • Select CX_95952.inf
  • Say Ok all the way out.
  • Say Yes if it complains that this driver is not digitally signed.
  • Reboot

Once you are rebooted you can verify you are using the ATI drivers and set your resolution,Voila!

Notes:

Once Mobility Modder has modified your .inf file you can search the file and verify your hardware is found. If you do not know how to find the hardware id. You go to the details section of your card properties, found under device manager and select from the dropdown Hardware Id’s. The following screenshot shows mine.

Image

Hope this helps!

Edit:

I also had to update the sound card which is a SigmaTel – Sound – SigmaTel C-Major Audio.

1. Download the cab file http://catalog.update.microsoft.com/v7/site/Search.aspx?q=VEN_8086%26DEV_266E%26SUBSYS_01881028

2. Extract cab

3. Update the driver in the same manner as above by browsing to the folder that contains the extracted files.

Resources:

http://www.hardwareheaven.com/modtool.php

http://support.amd.com/us/gpudownload/windows/Legacy/Pages/radeonaiw_xp.aspx

http://www.sevenforums.com/graphic-cards/31442-ati-radeon-drivers-install-but-fail-initialize.html

Written by lordfu

July 4, 2012 at 6:11 pm