Where’s a good place to get inspiration for mobile and web design components?
You can see and play with tons of ideas from around the world from everything having to do with graphics to controls to websites . . . and you can interact with the designers . . . and even hire them!
Pretty cool site!
I just turned on my Mac and now my bluetooth keyboard and magic pad won’t sync.
Sometimes, when I bring my laptop back in after taking it home from work at night, my wireless keyboard and magic pad won’t sync. Instead of rebooting my computer, I just unload the bluetooth in a terminal session.
sudo kextunload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
sudo kextload -b com.apple.iokit.BroadcomBluetoothHostControllerUSBTransport
to load it back again.
I just applied the Microsoft Asp.Net MVC Security Update and now I can no longer build!
These projects will fail with the following error:
Could not locate the assembly “System.Web.Mvc,Version=126.96.36.199, Culture=neutral, PublicKeyToken=31bf3856ad364e35,processorArchitecture=MSIL”.
This MSDN article might be able to help you fix it.
Call me spoiled, but, when I first started using mongo through the mongo command line tool, it wasn’t long before I started missing the SQL Server Management Console for doing my database work.
Fortunately, there’s a free tool for MongoDB called Robomongo that fills that void.
If you use nullable types in C# (e.g., int?, double?, boolean?, etc.) you may be interested to know that C# has a special operator for handling what to do if a value is null. It is called the null-coalescing operator. It works like this . . .
int? x = null;
int y = x ?? -1;
If x is null, then the value on the right side of the ?? will be used; otherwise, it will use the value of x to assign to y in the example above.
So, you don’t need to do things like this anymore . . .
int y = (x == null) ? x : -1;
Here’s a nice article on in Stack Overflow on using Visual Studio’s Ctrl-Shift-F to do some extensive searching for references to a project in other projects:
If you know how to use Ctrl-Shift-F, here’s a quick screenshot at how to set it up to search just for these dependencies:
In Visual Studio, when compiling solutions, you may encounter the following error message:
Found conflicts between different versions of the same dependent assembly. Please set the “AutoGenerateBindingRedirects” property to true in the project file. For more information, see http://go.microsoft.com/fwlink/?LinkId=294190.
Or you might see a similar version of this when trying to browse to an ASP.NET website that looks like:
WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].
To see exactly the path and the assemblies that are causing the problem, you’ll need to turn on logging for the .NET binding process. The information above in the error message is not sufficient to enable this though. Here’s the full information needed in order to see the assembly binding (from Stackoverflow):
DWORD ForceLog set value to 1
DWORD LogFailures set value to 1
DWORD LogResourceBinds set value to 1
String LogPath set value to folder for logs (e.g. C:\FusionLog\)
Make sure you have that trailing backslash in the log path.
Then, restart your application or build and inspect the details in the log file or the output from ASP.Net!
How do I have text resize to the view port?
If you are using Twitter Bootstrap, you can use FitText.js to do this for you.
Add an autofocus attribute to your input like this:
Then, set the focus on the first visible input with autofocus when angular is ready like this:
Let me know if you have another, better way.
Here’s a snapshot of the table of contents . . . good stuff . . .
What is a Pattern?
“Pattern”-ity Testing, Proto-Patterns & The Rule Of Three
The Structure Of A Design Pattern
Writing Design Patterns
Categories Of Design Pattern
Summary Table Of Design Pattern Categorization
Revealing Module Pattern
Design Patterns In jQuery
Lazy Initialization Pattern
jQuery Plugin Design Patterns