How to copy a mysql database

mysqldump --opt -h db.example.com -pmypass -u webusr mydb_prod | mysql -h db.example.com -pmypass -u webusr mydb_prod_v2

"The network path was not found" error on Win XP sp2

The problem
You are unable to connect to any network resource (network shares, printer, etc) on a Windows XP machine, from a Win XP client.

A solution (there could be several causes)
  • On the target machine (the one you're trying to connect to) open up Services, under Administrative Tools in the Start Menu.
  • Scroll down to the Computer Browser service.
  • If it is Disabled or set to Manual, set it to Automatic.
  • Then start it. It may stop immediately again, but this is OK.
  • At this point try to connect to the target machine.
If it still doesn't work, you can try the following:
  • open up Network Connections, under Control Panel.
  • Right click on your network adapter and click on Properties.
  • Click on Internet Protocol (TCP/IP), then click on Properties.
  • Click on Advanced, and click on the WINS tab.
  • Even if it is set to Default, set the radio button to Enable NetBIOS over TCP/IP.
  • Press OK on each screen until everything's closed.
  • Go back to the client machine and try again.
  • You should be able to connect!
If it still doesn't work:
  • Go back to the Services window and find the service named Routing and Remote Access.
  • Double-click on it, set it to Manual, and stop it.
  • Close Services and try to connect from your client machine again.
For further info on this issue, you may like to consult the following recommended books: Home Networking For Dummies (For Dummies (Computer/Tech)), Microsoft Windows XP Networking Inside Out, or Windows XP Home Networking.

If this helped you, or if you found another solution to this common and frustrating problem, please leave a comment to help others!

p.s. See here for a possible Windows 2000 solution.

Error while installing .NET Framework 3.5 Beta 1

It seems that on Windows XP SP2, if you already have .NET Framework 3.0 installed, you will get an error while trying to install the pre-release .NET 3.5 beta 1.

The installed will complain about dependencies, one of such is:

Microsoft .NET Framework 3.0SP1 WCF

You will not find this to download anywhere!

The fix!
Uninstall .NET Framework 3.0, then start the 3.5 installation process. The 3.5 installer will grab the bits of 3.0 that it needs. This will fail again BUT it will have installed the necessary prerequisites. You'll get similar DepCheck errors again.

Then, install the: Visual Studio 2005 extensions for .NET Framework 3.0 (Windows Workflow Foundation)

Now, start the 3.5 installation one more time. This time it should complete.
Restart the PC and you're done.

If you're tearing your hair out with the SSIS 'Failed to acquire connection...' error...

.. try setting the TransactionOption property on the package to NotSupported.
Your problem could be that MSDTC is either not running, incorrectly configured, or being blocked by a firewall.

This problem is common when migrating a package, which you've been working on a local dev machine, to a staging or production server. Servers commonly have tighter security restrictions than desktops or perhaps the admin hasn't even enabled MSDTC.

If you really need transactions then you'll have to delve into this issue deeper!

Here's some links to help you:
http://blogs.conchango.com/jamiethomson/archive/2005/11/02/2339.aspx
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=146&messageid=266032

etc..

SqlException Number Reference

You can find these in System.Data.SqlClient.TdsEnums using Reflector.

DISCLAIMER: These could be out of date or wrong! I've just listed them here because I couldn't find them on Google.

18456: Logon Failed
18488: Password Expired

HTTP 404 error in IIS 6 on new ASP.NET application install

If you're putting together an IIS 6 box and you're getting 404 errors on all your ASP.NET applications, do the following:

1. Open IIS Manager on the IIS box
2. Expand the computer_name node
3. Click on Web Service Extensions
4. Ensure the Status for ASP.NET v2.0.50727 is Allowed

Repair of a corrupt Microsoft Access ADP file

1. Open a brand new ADP file.
2. Enter the connection details when prompted.
3. File->Get External Data->Import
4. Select the corrupted ADP file
5. Select all Forms, Reports, Macros, Modules that you need. Click OK
6. If all goes well, you'll have a working ADP file again. If it doesn't go well, try being more selective with the imported data. You might have a badly corrupted Report that you'll have to skip.

This may give you some more ideas.

Firefox CSS div / box model problem

The Problem: You've structured your page using a whole bunch of divs. Perhaps #top, #centre, #footer. Everything is inside #wrapper. Inside #centre you have several divs of class ".container". The containers comprise mainly of images - some of which are loaded from external sites. The containers are floated left so that their internal contents can also be floated. This is a standard scenario.

In firefox (1.5-2.0+), particularly if the images load slowly, there is an "overlap" effect, by which as the container divs fill up and expand themselves, the #footer, which has already been rendered, appears underneath the container divs.

In other words, the footer shows up first because it is just text and is rendered quickly. It will appear at the bottom of the page, say at 1000px down the page. The bug or feature in firefox means that as the divs above it expand they run down the page over the top of the footer which stays static in the place it was first loaded.

The Solution!
It is imperative that for every floated box/div, you also have specified a clear parameter. For things like content containers, or main page containers you can use clear: both. And for more complex layouts where you are mimicking tables, you can use clear: left or clear: right.

In my particular situation, I had not floated the #center div, and thus had also not specified a clear param. So, leaving #wrapper to take care of the centred positioning, I added the following lines to #centre:

float:left;
clear:both;

And for good measure, I added these to .container:

clear:both;


This seems to ensure that firefox will correctly push already rendered boxes down the page. Not sure if it's a bug or not. I guess it is, since in my understanding, divs have clear:both set by default, i.e. they are designed to act as paragraphs. I have seen other fixes such as the clearfix and the setting of height to 100%, but these didn't work for me. Perhaps they didn't apply.

Anyway, deep sigh of relief.

Making IE6 Behave With Cookies: P3P How To

If you've found this page then you've come up against IE6's privacy features. Namely that cookies are getting blocked and you need them not to be. Perhaps you need frames in your site, perhaps you're into affiliate marketing, but either way the cookies need to make it to your valuable surfer's computer!

At first Google search I was not impressed. If you want to pay around US$100 you can get software to do it for you. There was no way I was going to pay. For starters, I believe almost everything on the web should be for free, and secondly I knew in the back of my mind that I could get my head around an XML schema for less than $100.

So what do we want? A minimal P3P file that just works! When do we want it? Now! Let's face it - we just want our damn cookies to be written to a machine running IE6. I'm not saying privacy isn't important but the firefox/mozilla implementation works just fine for the majority.

So after a bit more searching around I found p3pbook. It's the accompanying website to what looks to be the definitive book on this stuff. They've got lots of examples and this is the most straight forward site I've found on the matter.

If you don't want to wade through the W3C Spec, this example document from the P3PBook shows you all the items of the schema. If you're serious about writing your privacy policy in perfect detail then you will have to check the offical W3C spec to understand the definition of each schema option.

Useful links
http://www.oreillynet.com/pub/a/javascript/2002/10/04/p3p.html

Tags

windows (10) microsoft (9) .net (6) google chrome (5) windows 7 (5) asp.net (4) google (4) google browser (4) development (3) javascript (3) mssql (3) rss (3) sql server (3) wordpress (3) automation (2) blogging (2) css (2) database (2) firefox (2) get all wordpress images (2) gmail (2) google docs (2) intel (2) internet explorer (2) linux (2) linux commands (2) microsoft word (2) mysql (2) netsh (2) network issue (2) proxy (2) seo tips (2) shell (2) sun (2) tfs (2) videos (2) wget (2) windows networking (2) windows vista (2) winhttp (2) .net 3.5 (1) .net 4.5 (1) .net async ctp3 (1) .net framework 4.0 (1) 404 (1) JungleDisk (1) access (1) active directory (1) addons (1) adobe acrobat (1) adobe dlm (1) adobe reader (1) adp (1) adsense (1) adtoll (1) adwords (1) amazon (1) antivirus (1) asp.net 4.0 (1) authentication (1) back links (1) backlinks (1) bacula (1) bash (1) batch files (1) blogger (1) box (1) browser exploits (1) category rss (1) cell phone (1) cell phone comparison (1) charting (1) cheap cell phones (1) cheap laptop upgrades (1) checkout (1) chrome (1) chrome.manifest (1) cloud (1) cloud hosting (1) cloud vps (1) code (1) color chart (1) colour chart (1) conditional formatting (1) config (1) configuration (1) context menu (1) copy (1) corrupt (1) credentials (1) cross-reference (1) database scripts (1) dba scripts (1) debian (1) decrypt (1) delete file windows vista (1) delete files (1) dell (1) dell laptop (1) dell studio (1) dell studio 1537 (1) dhcp (1) directory size (1) div (1) dns (1) document properties (1) dotnet (1) download (1) dreamhost (1) dreamhost coupon (1) dreamhost promo (1) dreamhost promo code (1) drive letter (1) drivers (1) duplicate content (1) editpad pro (1) encrypt (1) encryption (1) error (1) error code (1) excel (1) exception (1) external hard drive (1) facebook (1) faviconize (1) feeds (1) firefox 3 rc1 (1) firefox 3.1 (1) firefox addons (1) firefox tabs (1) firewall (1) firewall script (1) fix (1) fix .net framework (1) foreign keys (1) gmail 2.0 (1) gmail error (1) google chrome 2.0 (1) google chrome dev (1) google chrome exploit (1) google reader (1) google reader tags (1) gtdinbox (1) hard drive (1) hex color (1) hex colour (1) htaccess (1) html (1) html 5 (1) iis6 (1) installation (1) ipod touch (1) ipod touch 2g (1) ipod touch freeze (1) ipod touch magnet case (1) ipod touch magnet case problem (1) ipod touch problem (1) iterator pattern (1) itunes (1) java (1) joomla (1) jquery (1) laptop (1) laptop upgrade (1) laptops (1) latex (1) leeching (1) like button (1) link checker (1) linkbacks (1) linq (1) linqdatasource (1) lost password (1) making money online (1) map drive (1) mega cheap phones (1) microsoft excel (1) microsoft signature (1) microsoft store (1) microsoft web deploy (1) microsoft windows (1) microsoft word 2007 (1) minimize firefox tabs (1) mozy (1) ms word (1) msdeploy (1) msdtc (1) nant (1) netstumbler (1) network path not found (1) network path was not found (1) network problem (1) networking (1) new movies (1) nintendo (1) nirsoft (1) nocheckbrowser (1) number (1) odf (1) odt (1) online backups (1) open source browser (1) openoffice (1) oracle (1) oracle client (1) photoshop (1) phpmyadmin (1) podcast (1) powershell (1) pr checker (1) productivity (1) proxy server (1) proxycfg (1) putty (1) recover (1) registry (1) reinstall windows 7 (1) remote desktop (1) remove (1) repair (1) reset joomla admin password (1) rewrite (1) rsa (1) sandy bridge laptop (1) seagate momentus xt (1) seo tools (1) sequence (1) server monitoring (1) sftp (1) social networks (1) softlayer (1) soulseek (1) spreadsheet (1) spreadsheet formula (1) sql (1) sql scripts (1) sql server management studio (1) sqlclient (1) ssh (1) ssis (1) ssl (1) ssms (1) subst (1) tabmixplus (1) telstra (1) text editor (1) trust (1) unlock cell phone (1) unlock mobile phone (1) upgrade laptop hard drive (1) user management (1) vb.net (1) video download (1) virtual server (1) visual studio (1) vodafone (1) vodafone australia (1) vps (1) vps.net (1) wd external drive (1) web deploy (1) web dev (1) web development (1) web hosting (1) web security (1) webdev (1) webmail (1) webmaster tips (1) western digital (1) wifi networks (1) wii (1) win7 (1) windows 7 backup (1) windows 7 gadgets (1) windows 8 (1) windows 8 antivirus (1) windows error (1) windows live (1) windows live essentials (1) windows live toolbar (1) windows tips (1) windows web development (1) windows xp (1) winxp (1) wireless networks (1) word tips (1) wordpress 2.7 (1) wordpress plugin (1) wp super cache (1) yield (1) youtube download (1) youtube playlist download (1)