Monday, December 30, 2013

Updates to EndpointMVC published on Nuget

 

EndpointMVC : Nuget

PM> Install-Package EndpointMvc


  • Updated to use .NET4.5, ASPNET.MVC5, WepApi2


    • These are nuget dependencies and will pull in if needed

  • New side navigation:


    • image
    • Can be collapsed off screen
    • Shows where in the document you are
    • Has a search box to filter endpoints
    • If Mousetrap.js is loaded, keyboard bindings are set for collapsing and search box focus.  

  • New deep link for custom types that shows information about the type

image



  • Updated to use bootstrap3 for layout

  • Updated to use Font Awesome for images

  • Smooth Scrolling in navigation if jQuery ScrollTo plugin is loaded

Friday, November 29, 2013

50% Lifetime Discount on Web Hosting

arvixe_CM1

UPDATE: For CyberMonday!

Use the coupon code CYBERMONDAY and get the same 50% off for life.



Every year, my hosting provider, Arvixe, runs a Black Friday sale. This year is no different. Act now, using coupon code blackfriday and receive 50% off your hosting for life. This includes their Shared, VPS, and Reseller accounts. I have been a customer of Arvixe for a couple years now and really have not had any reason to complain. Any issues I have ever had (which were usually a result of something I did) were resolved by their customer support within hours.


With this deal, you can get Linux hosting for as low as $2.00 a month, or Windows hosting for as low as $2.50 a month. Their plans include unlimited disk space, and unlimited monthly data transfer. You can also create unlimited number of MSSQL databases (on Windows) or unlimited MySQL databases. Before I went with Arvixe I looked at the other hosting providers. None of them compared to what Arvixe offers.


 






LINUXWINDOWS


image image


Take these prices above and take 50% off that price. You get so many options with your plan. Unlimited subdomains, unlimited FTP accounts, a free domain for life… and the list goes on and on.




This Sale Ends at 11:59PM on 11/29/2016

Sunday, August 11, 2013

New open source tool: Fyles

Fyles is a tool that will gather all the icons for all the file types that are on a system. It then generates a sprite sheet and css for all of those extensions. Fyles only references unique icons, so if there are file types that share the same icon, it will only be in the sprite once. The exception to this is the “default” icon, to ensure that the default icon exists in the sprite, it may exist more than once.

Here is a sample of how the sprite is laid out:

fyles-sample

And here is a small block of what the css looks like:

And here is how you would include an icon on your page:

Friday, May 24, 2013

Introducing EndpointMvc

EndpointMvc is a library that dynamically created documentation for your api endpoints. All you have to do is register EndpointMvc’s routes, and add an attribute to your classes to indicate that it is an endpoint.

All the information comes from the method signature itself, or attributes that are added to the methods, classes, parameters, and properties. Most of the attributes are built-in attributes, only a few other attributes are used to add additional information that attributes do not currently exist for.

EndpointMvc supports three output formats, Html, Json, and Xml. The Html format requires the view to be part of your projects views, but the sample mvc project has a starting point for the Html format.

EndpointMvc is also available via Nuget:

Install-Package EndpointMvc

Sunday, January 27, 2013

How To: Manually Flash ClockworkMod Recovery Touch on Samsung Galaxy Note II

You can easily flash the Touch version of ClockworkMod from ROM Manager for an in app purchase of around $3.00. But you can manually do it and save a couple bucks if you want to try the touch version before you buy it.

  1. Download the touch version for your device from the ClockworkMod websiteimage
  2. rename the downloaded file to recovery.img
  3. copy the renamed file to /sdcard/recovery.img
  4. open a terminal window (or adb shell)
  5. su in the shell to gain root access
  6. run the following command:

    # dd if=/sdcard/recovery.img of=/dev/block/platform/dw_mmc/by-name/RECOVERY
  7. reboot the device in to recovery and enjoy

Sunday, January 20, 2013

Getting Mount Manager working with Android 4.2

This post May Not apply to you but I hope it helps.

I have had some people that have reported issues connecting to a share with Mount Manager on a 4.2 device.

First, make sure you have the required modules for your kernel. This post will be using CyanogenMod 10.1 as the reference, but your ROM may differ and YMMV.

In CM10.1 you have to load 3 modules to get cifs to work correctly. cifs.ko depends upon dns_resolver and md4 modules. They have to be loaded before cifs.ko.

modules

Once you have these modules loaded you should be able to mount your shares. If you are still having issues try looking at this post on XDA. It seems there is an issue with some builds of busybox that it needs the unc option added to the connection.

You can add a new option when creating a mount point and select custom. Then enter “unc” as the name. For the value you will enter the same path that you use for the network share, except you have to use “\” instead of “/”. And you have to escape them. So you need to use 2 of them for every one you enter.

unc

How to find a Lost or Stolen Android phone

692px-Criminal-Minds.svgIf you were not aware, I am an active user on Android Enthusiasts, and I try to help anyone that I can. Over the past 2 years that I have been active on Android Enthusiasts there has been a fair number of questions regarding someone losing their phone.

Usually someone answers the question by telling the person to install Plan B, and this may be a great application. And I do encourage you to try to use this application. I hope it works for you, I truly do.

Now let me tell you a little bit about the reality of using an application like this. Let me use the scenario of being at a bar. You leave your phone on the bar top, someone walks by, while you are having a conversation or a toast with friends, grabs your phone and continues walking. The thief can stop all data and calls to the phone in seconds by taking the battery out of the phone. Now they have a device that is completely off and will not receive any calls or text messages.

If the thief wants your data he will have to put the battery back in, but he doesn’t have to boot in to Android. Booting the device in to the recovery could give the thief enough access to get to data on the device. But to be honest, 9 times out of 10, the thief doesn’t care about your data. He wants the $600+ device that he stole from you. So that means all the thief has to do is put the battery back in, boot to the recovery and do a factory reset.

Do you know what that means? None of these “find my phone” apps will work because you wont be able to install them, and they will not be installed if you already have them installed. Why? Because the phone is no longer tied to your google account and all the applications, and data associated with them is gone once the person did the factory reset.

I know what you may be thinking, how do I protect my phone from being stolen? Well, again, if someone does steal your phone, or you lose it, try an app like Plan B. But don’t be surprised when you don’t get any information back. The best advice I can give you is this: You paid $600 (or more) for your phone, (even if you got it on contract for only a couple hundred, you still end up paying over $600 for it) treat it like it should be treated. Like a $600 piece of equipment. Would you leave your laptop just laying around? How about your car keys? Would you leave your front door on your house open? So why do you leave your phone laying around. Remember your phone has potentially more personal information about you than any other one thing you own, and it fits in a pocket.

Another thing you should do in the event that your phone is stolen or lost is to call your carrier. Get the IMEI number from your carrier, if you don’t have it. Report it stolen to your carrier. This will flag it on their network and it won’t be able to be activated by anyone else on the carriers network. You should also file a report with the police, if it was stolen. Giving the authorities the IMEI number will also help as they can contact the carrier and request additional information from the carrier and maybe have some luck in tracking the phone down.

Good luck, I hope you do not have your device stolen.

Saturday, January 19, 2013

Enable Soft-Keys on Samsung Galaxy Note 2

device-2013-01-19-014319I wanted to enable the soft-keys on my Samsung Galaxy Note 2 after switching to the new nightly builds of CyanogenMod 10.1.

I found that it is actually rather easy to turn them on. It just requires modifying the build.prop with the following:

qemu.hw.mainkeys=0


If you want to disable them later just change it to:


qemu.hw.mainkeys=1


After you modify the build.prop you have to reboot for the changes to take affect.


This change will turn on the soft-keys, but it does not disable the hardware keys. But you can disable them too. You have to open /system/usr/keylayout/Generic.kl and comment out the following by added a '#' to the beginning of the line.


# key 158	BACK
# key 139 MENU


The home key is located in /system/usr/keylayout/gpo-keys.kl


# key 172	HOME	WAKE


To turn these back on just remove the '#' and reboot.

Updates to EndpointMVC published on Nuget

 

EndpointMVC : Nuget

PM> Install-Package EndpointMvc


  • Updated to use .NET4.5, ASPNET.MVC5, WepApi2


    • These are nuget dependencies and will pull in if needed

  • New side navigation:


    • image
    • Can be collapsed off screen
    • Shows where in the document you are
    • Has a search box to filter endpoints
    • If Mousetrap.js is loaded, keyboard bindings are set for collapsing and search box focus.  

  • New deep link for custom types that shows information about the type

image



  • Updated to use bootstrap3 for layout

  • Updated to use Font Awesome for images

  • Smooth Scrolling in navigation if jQuery ScrollTo plugin is loaded

50% Lifetime Discount on Web Hosting

arvixe_CM1

UPDATE: For CyberMonday!

Use the coupon code CYBERMONDAY and get the same 50% off for life.



Every year, my hosting provider, Arvixe, runs a Black Friday sale. This year is no different. Act now, using coupon code blackfriday and receive 50% off your hosting for life. This includes their Shared, VPS, and Reseller accounts. I have been a customer of Arvixe for a couple years now and really have not had any reason to complain. Any issues I have ever had (which were usually a result of something I did) were resolved by their customer support within hours.


With this deal, you can get Linux hosting for as low as $2.00 a month, or Windows hosting for as low as $2.50 a month. Their plans include unlimited disk space, and unlimited monthly data transfer. You can also create unlimited number of MSSQL databases (on Windows) or unlimited MySQL databases. Before I went with Arvixe I looked at the other hosting providers. None of them compared to what Arvixe offers.


 






LINUXWINDOWS


image image


Take these prices above and take 50% off that price. You get so many options with your plan. Unlimited subdomains, unlimited FTP accounts, a free domain for life… and the list goes on and on.




This Sale Ends at 11:59PM on 11/29/2016

New open source tool: Fyles

Fyles is a tool that will gather all the icons for all the file types that are on a system. It then generates a sprite sheet and css for all of those extensions. Fyles only references unique icons, so if there are file types that share the same icon, it will only be in the sprite once. The exception to this is the “default” icon, to ensure that the default icon exists in the sprite, it may exist more than once.

Here is a sample of how the sprite is laid out:

fyles-sample

And here is a small block of what the css looks like:

And here is how you would include an icon on your page:

Introducing EndpointMvc

EndpointMvc is a library that dynamically created documentation for your api endpoints. All you have to do is register EndpointMvc’s routes, and add an attribute to your classes to indicate that it is an endpoint.

All the information comes from the method signature itself, or attributes that are added to the methods, classes, parameters, and properties. Most of the attributes are built-in attributes, only a few other attributes are used to add additional information that attributes do not currently exist for.

EndpointMvc supports three output formats, Html, Json, and Xml. The Html format requires the view to be part of your projects views, but the sample mvc project has a starting point for the Html format.

EndpointMvc is also available via Nuget:

Install-Package EndpointMvc

How To: Manually Flash ClockworkMod Recovery Touch on Samsung Galaxy Note II

You can easily flash the Touch version of ClockworkMod from ROM Manager for an in app purchase of around $3.00. But you can manually do it and save a couple bucks if you want to try the touch version before you buy it.

  1. Download the touch version for your device from the ClockworkMod websiteimage
  2. rename the downloaded file to recovery.img
  3. copy the renamed file to /sdcard/recovery.img
  4. open a terminal window (or adb shell)
  5. su in the shell to gain root access
  6. run the following command:

    # dd if=/sdcard/recovery.img of=/dev/block/platform/dw_mmc/by-name/RECOVERY
  7. reboot the device in to recovery and enjoy

Getting Mount Manager working with Android 4.2

This post May Not apply to you but I hope it helps.

I have had some people that have reported issues connecting to a share with Mount Manager on a 4.2 device.

First, make sure you have the required modules for your kernel. This post will be using CyanogenMod 10.1 as the reference, but your ROM may differ and YMMV.

In CM10.1 you have to load 3 modules to get cifs to work correctly. cifs.ko depends upon dns_resolver and md4 modules. They have to be loaded before cifs.ko.

modules

Once you have these modules loaded you should be able to mount your shares. If you are still having issues try looking at this post on XDA. It seems there is an issue with some builds of busybox that it needs the unc option added to the connection.

You can add a new option when creating a mount point and select custom. Then enter “unc” as the name. For the value you will enter the same path that you use for the network share, except you have to use “\” instead of “/”. And you have to escape them. So you need to use 2 of them for every one you enter.

unc

How to find a Lost or Stolen Android phone

692px-Criminal-Minds.svgIf you were not aware, I am an active user on Android Enthusiasts, and I try to help anyone that I can. Over the past 2 years that I have been active on Android Enthusiasts there has been a fair number of questions regarding someone losing their phone.

Usually someone answers the question by telling the person to install Plan B, and this may be a great application. And I do encourage you to try to use this application. I hope it works for you, I truly do.

Now let me tell you a little bit about the reality of using an application like this. Let me use the scenario of being at a bar. You leave your phone on the bar top, someone walks by, while you are having a conversation or a toast with friends, grabs your phone and continues walking. The thief can stop all data and calls to the phone in seconds by taking the battery out of the phone. Now they have a device that is completely off and will not receive any calls or text messages.

If the thief wants your data he will have to put the battery back in, but he doesn’t have to boot in to Android. Booting the device in to the recovery could give the thief enough access to get to data on the device. But to be honest, 9 times out of 10, the thief doesn’t care about your data. He wants the $600+ device that he stole from you. So that means all the thief has to do is put the battery back in, boot to the recovery and do a factory reset.

Do you know what that means? None of these “find my phone” apps will work because you wont be able to install them, and they will not be installed if you already have them installed. Why? Because the phone is no longer tied to your google account and all the applications, and data associated with them is gone once the person did the factory reset.

I know what you may be thinking, how do I protect my phone from being stolen? Well, again, if someone does steal your phone, or you lose it, try an app like Plan B. But don’t be surprised when you don’t get any information back. The best advice I can give you is this: You paid $600 (or more) for your phone, (even if you got it on contract for only a couple hundred, you still end up paying over $600 for it) treat it like it should be treated. Like a $600 piece of equipment. Would you leave your laptop just laying around? How about your car keys? Would you leave your front door on your house open? So why do you leave your phone laying around. Remember your phone has potentially more personal information about you than any other one thing you own, and it fits in a pocket.

Another thing you should do in the event that your phone is stolen or lost is to call your carrier. Get the IMEI number from your carrier, if you don’t have it. Report it stolen to your carrier. This will flag it on their network and it won’t be able to be activated by anyone else on the carriers network. You should also file a report with the police, if it was stolen. Giving the authorities the IMEI number will also help as they can contact the carrier and request additional information from the carrier and maybe have some luck in tracking the phone down.

Good luck, I hope you do not have your device stolen.

Enable Soft-Keys on Samsung Galaxy Note 2

device-2013-01-19-014319I wanted to enable the soft-keys on my Samsung Galaxy Note 2 after switching to the new nightly builds of CyanogenMod 10.1.

I found that it is actually rather easy to turn them on. It just requires modifying the build.prop with the following:

qemu.hw.mainkeys=0


If you want to disable them later just change it to:


qemu.hw.mainkeys=1


After you modify the build.prop you have to reboot for the changes to take affect.


This change will turn on the soft-keys, but it does not disable the hardware keys. But you can disable them too. You have to open /system/usr/keylayout/Generic.kl and comment out the following by added a '#' to the beginning of the line.


# key 158	BACK
# key 139 MENU


The home key is located in /system/usr/keylayout/gpo-keys.kl


# key 172	HOME	WAKE


To turn these back on just remove the '#' and reboot.