About Me

My Photo
I am horrible at filling stuff like this out. 

I write software all day long. Then I go home and when I don't have baseball or some other activity going on with the kids, I write software. I may also play some Xbox 360 with some friends.

_██_
(ಠ_ృ)

This is a personal weblog. The opinions expressed here represent my own and not those of my employer.

In addition, my thoughts and opinions change from time to time… I consider this a necessary consequence of having an open mind. This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

Archive

Saturday, March 3, 2012

Windows 7 and CIFS Out Of Memory Error

I have had a few users contact me about getting errors when mounting a share from Windows 7 with Mount Manager. This error was some type of “out of memory” error.

When you try to mount you see the following error:

mount error(12): Cannot allocate memory
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)

The error reports the following in Event Viewer:

Source: srv
Event ID: 2017
Level: Error
The server was unable to allocate from the system nonpaged pool because the server reached the configured limit for nonpaged pool allocations.

One user, after much research, found the solution. According to an article he found, you need to tell windows that it will be used as a file server and that it should allocate the memory that it needs to do so.

To do this, you have to set the following value in the registry to ‘1’.

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\LargeSystemCache

Also you have to set the following value in the registry to ‘3’.

HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\Size

Saturday, December 31, 2011

Html5 Unobtrusive Form Validation for ASP.NET MVC

I have a project that I was able to make use of modern browsers HTML5 form validation. But I wanted to include the validation that also takes place from within aspnet mvc so there is a unified experience with the validating the form. I took the jquery.unobtrusive-validation.js and made some modifications to it to hook in to the aspnet mvc validation. It is not yet 100%, the “Required” aspnet mvc validation doesn’t seem to “trigger” unless the field is filled out, then attempted to be submitted, and then cleared again, but the default html5 “required” validation message still shows initially. Either way, I figured I would share this and maybe someone could build on it and improve it. Enjoy.

Here are some screenshots of the results.

Failed Regex Validation
image 

Failed Minimum String Length Validation
image 

Failed Remote Password Strength Validation
image

Failed Compare to Password Field Validation
image


Download from Skydrive

Wednesday, December 21, 2011

Visual Studio Achievements app for iPhone

mzl.fkogmsgw.170x170-75A friend of mine liked the idea of the VSA app that I wrote for Android and decided to write an iOS version. It uses the exact same web API that the android version uses so it has the same features like the Leaderboard, viewing achievement details, user details, and marking users as a “favorite”. He also created the 9guy logo you see on the right for the iOS app.

The app will be available for free in iTunes once it passes the Apple approval process.

Now we just have to wait for the Channel9 Team to make the Visual Studio Achievements available to the public.

album[4]

Update: The app has been approved by apple and should appear in the app store any time now.

Update 2: You can now get the iOS version of Visual Studio Achievements in iTunes

Sunday, December 4, 2011

Visual Studio Achievements for Android

feature

View Visual Studio Achievements right on your Android de vices. Don’t let those Windows Phone users have all the fun.

  • View current leaderboard standings
  • View user information on all completed and started achievements
  • View information on each achievement

Once the service is fully launched, other features will come. Including the ability to monitor your achievements and progress, search and view other users achievements, and mark users as a favorite and easily monitor their progress to see if they are catching up to your score.

InlineRepresentation2c1e7a5c-b931-43ad-ab11-d27038087c3b[2]

Thursday, November 24, 2011

Black Friday Web Hosting Sale

Arvixe-Bird-Flying My host, Arvixe, is having a 48 hour Black Friday sale offering 50% off web hosting FOR LIFE. They offer the best options I have ever seen for Windows ASP.NET hosting then any other host for the cost. They also offer Linux hosting at even lower prices then the Windows ASP.NET hosting.

For example, I have unlimited disk space, monthly data transfer, dedicated application pools, domain aliases, subdomains, ftp accounts, pop3/imap email accounts, MySQL databases, ODBC DSNs, and MSSQL 2008 Databases. And I pay ~$8.00 a month. If you use the coupon code “Black Friday”, this will only cost you ~$4.00 a month!

Arvixe has LIVE customer service via phone available 24 hours a day, 7 days a week, 365 days a year. They also have Live Chat available as well. I have never had any issue reaching someone when I had an issue (that was usually my fault). They were always quick in resolving the issue as well as explaining what the cause was.

The coupon code “Black Friday” will be valid from 12:00AM PST Thursday, November 24th 2011 through 11:59:59PM PST Friday, November 25th 2011.

Arvixe Black Friday Sale

Wednesday, November 23, 2011

Mount Manager License 3 Day “Black Friday” Sale!

black_friday-e12890218179751Following the strange times that all the stores seem to be having this Black Friday, I am having my own “Black Friday” sale on the license for Mount Manager. If you buy the license for Mount Manager between now and 11:59PM CST on Friday 11/25/2011, you will save $1.00 on the cost of the license.

If you do not yet see the lower price, try again later, the market has to push the changes out before it takes affect.

Purchase License from the Android Market

Tuesday, November 15, 2011

Eclipse Color Theme

To go along with the other themes that I have posted here in the past based on Coding Instinct, here is a Coding Instinct theme for Eclipse Color Theme. The site also has a download in EPF format (Eclipse Preferences).

java-codinginstinct

Eclipse Color Theme (XML) – for Eclipse Color Theme Plugin
Eclipse Preferences (EPF) – for Eclipse Import

Monday, November 14, 2011

Connecting to Nook Color w/ CyanogenMod7 via ADB over USB

nook-colorThe Nook Color is a great device, especially when CyanogenMod is installed on the device. The only issue I was having with the device, I was unable to connect to the device via ADB over USB.

I followed the steps here, but was still unable to see the device via ADB. After looking through the “fix” that was linked from XDA, I noticed that it modifies, or creates a file in %USERPROFILE%\.android\ called adb_usb.ini. That file contains vendor id’s for the devices and it contains 0x2080. As I was digging around looking to fix this issue, I noticed that in the root of my Android SDK installation there is a folder called .android. In that folder, just like the one in my user profile, there is a file called adb_usb.ini. This file is empty, except a couple comments describing the file. I added the 0x2080 to this file, then I restarted adb by doing an adb kill-server, then an adb start-server.

Now when I do adb devices, I can see the Nook Color and I can perform any adb or shell commands on the device via adb over USB.

Sunday, November 13, 2011

New version of Mount Manager available

I published a new version of Mount Manager last night that addresses some issues along with adding new functionality.

  • Fixed bug when mounting / unmounting a share that contains a “space”
  • Fixed bug when mounting / unmounting when mount point contains a “space”
  • Fixed bug if the share path or mount point contains a trailing slash
  • Changed the default mount point “base” to /sdcard/cifs/ instead of /mnt/cifs/. This eliminates the need to remount / as read/write. If you have mounts already defined to /mnt/cifs/, I suggest that you move them to /sdcard/cifs/ otherwise you will get errors when mounting and you will manually have to remount / as read/write.
  • Added a built-in file/folder browser used for selecting the mount point or browsing for module files to load.
  • Added ability to browse for network shares. Some machines are not browsable, depending on how the shares are set up. In these cases, you will just have to manually enter the share path.
  • Updated the admob library to the latest version.

mm-nui-1 mm-nui-2 mm-nui-3 mm-nui-4 mm-nui-5 mm-nui-6

Friday, August 12, 2011

Getting GPS working again on the Vibrant w/ CM7 nightlies

I love CyanogenMod and I thank all of them for their hard work that they do for basically nothing except the “thrill”. I have been using that since the very first version on my HTC ADP1. Then I bought the Samsung Galaxy S Vibrant from T-Mobile and CM was not available for the device. I stuck with the “Stock” Samsung TouchWiz UI that I made some tweaks to here and there to get a better experience for myself. I did things like rooting the device, adding the CarDock, removing the crap software that I don’t ever use, removed the “WorldClock” and added the stock Alarm Clock and other things here and there.

The GPS on this device has always been a topic of discussion, as there were issues with it from launch. It would take up to 10 minutes or more, to get a lock, and once you got the lock, you would probably lose it. There were people much smarter then me that found ways to make the GPS usable on the Stock TouchWiz UI.

After some time, Team Whiskey released the Bionix ROM. This was/is a ROM still based off the TouchWiz version of Android at its core, but was a better experience as it included functionality that was not in stock TouchWiz, and it didn’t include the bloatware. The biggest thing that Team Whiskey brought to the Vibrant with Bionix was Voodoo. Now, I know they did not create Voodoo, and other ROMs had support too, but I am just babbling about what Bionix did for me. I ran this ROM for some time, and a mod that I created that brought the Gingerbread keyboard with working the hepatic feedback to FroYo ROM is even included in the distribution. But there was still something missing for me.

I believe, at least for me, that the Vanilla Android is a better user experience, and the CM modifications, is that experience, plus more for your “die-hard” android users. I would go to the CyanogenMod website often to see if there was any developments on getting a build of CM running on the Vibrant. Now, you may read this and say “It ran on the Vibrant for a while”, and that is true, but the steps needed to install it on the device was a pain in the ass, not to mention that there were a lot of things that were not working. These are the things that kept me on Bionix. Then the CM team that work on the Vibrant (and other Galaxy S devices too) got the install process to be a lot less of a pain. At that time, I decided to give it a try, and I knew that GPS, among some other bugs existed.

Then shortly after I started flashing these unofficial builds of CM, the nightlies started. At the time of this post, they have over 75 nightlies, but there are still some issues with it, including GPS. Which brings me to the actual title of this post. I found this thread over on XDA by stricklyrude27. He put together a set of scripts and files and steps that were created by other people (see thread for their credit) and placed them in to a single update.zip package.

I am running CM7.1-N76 with the GPSFix v1.4 and GPS works great. I get a lock in just a couple of seconds. If you are running CM7 on your Vibrant, head over to the thread and give it a try, at least until an official CM7 solution comes about.

Thank you to all that contribute to the CyanogenMod and especially to the SGS Team, also thanks to all that were involved in getting this fix working too. The android community is great and love that just about always, a solution to any issue is found.