How do you do AppBar docking (to screen edge, like WinAmp) in WPF?

Please Note: This question gathered a good amount of feedback, and some people below have made great points or fixes. Therefore, while I’ll keep the code here (and possibly update it), I’ve also created a WpfAppBar project on github. Feel free to send pull requests. That same project also builds to a WpfAppBar nuget package … Read more

Visual studio forgets window settings and makes a mess

Sounds like there is definitely a problem with Visual Studio retaining your settings between round-trips and possibly your Visual Studio settings profile in general. The solution I’d recommend is firstly to reset all settings, secondly customize things to your personal preference and finally take a backup of those customized settings. The idea is that this … Read more

How to hide the Dock icon

You can use what is called Activation Policy: Objective-C // The application is an ordinary app that appears in the Dock and may // have a user interface. [NSApp setActivationPolicy: NSApplicationActivationPolicyRegular]; // The application does not appear in the Dock and does not have a menu // bar, but it may be activated programmatically or … Read more

Executing Shell Scripts from the OS X Dock?

You could create a Automator workflow with a single step – “Run Shell Script” Then File > Save As, and change the File Format to “Application”. When you open the application, it will run the Shell Script step, executing the command, exiting after it completes. The benefit to this is it’s really simple to do, … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)