In iOS 7, the status bar and navigation bar are now unified. The status bar is translucent which is suppose to merge seamlessly with the navigation bar. This works great for the most part until you try to present a view controller or use a modal segue in storyboards. [self presentViewController:myViewController animated:YES completion:nil]; Using these […]
- August 27, 2013
#Chrome, #CSS, #Hacks, ...
First of all, most CSS hacks are generally considered bad practice and should be avoided whenever possible. With that said, there are times when using a CSS hack is necessary to target browser specific technologies. Internet Explorer IE is at the root of most CSS problems. To target IE specifically, create a seperate stylesheet for […]
Emailing in Node.js is easy to do with the Nodemailer module. Nodemailer supports plain text content, HTML content, attachments, different transport methods, etc. The official documentation can be found on github. Getting Started Lets start off by creating our directory. mkdir EmailExample cd EmailExample Creating package.json In the EmailExample directory we just created, run npm […]
I was recently asked to create a signature pad for desktop and mobile browsers to save customer signatures. The solution included using the <canvas> element and adding event listeners for both mouse and touch events to draw the signature lines on the canvas. First thing is we have to create a canvas element. <canvas id=”canvas” […]
With the announcement on iOS 7 and the growing trend towards flat UI, I decided to create a simple iOS control to create flat buttons. The control can be downloaded from Github and can be used in any iOS project. Using the control is as simple as it gets. Once you download the project, copy […]
- June 9, 2013
#.NET, #C#, #Debugger, ...
With .NET 4.0, System.Runtime.Caching MemoryCache can be used to persist large object collections for better performance. This works great when your web application is published to a server. When debugging in Visual Studio, you’ll find that the cache object will be empty at random times. This is apparently caused by a bug in .NET 4.0. […]