Author Archives: Steve

Settings Plus App for Windows Phone

Settings Plus

Today I created my first windows application, Settings Plus.

As a Windows Phone user myself, I did not see any applications out there that provides quick access to phone settings, especially to put the phone in silent mode (ringer and vibrate off). I really wanted this, so I dove in and started coding myself. I ended up creating a nice first application that lets the user pin Wi-Fi, Bluetooth, Cellular and Airplane mode directly to their Start. Unfortunately,  the SDK does not provide resources to modify the vibrate settings. Hopefully this will come in the future.

Download and Rate Today!

Version 1.5

  • Added: Tile options for Accounts, Location and Lock settings.
  • Updated: Icons

Version 1.4

  • Added: Settings option to skip toggle page when clicking on tile within app
  • Removed: Vibrate Icon. Windows Phone SDK does not support vibrate access

Version 1.3

  • Added: Icons now display on tiles when adding to the homescreen

Version 1.2

  • Language Support for Spanish and Chinese (Traditional)

Version 1.1

  • Added vertical scrolling to quick toggle screen
  • Bug Fix: Airplane Mode Redirection
  • Bug Fix: General Tap/Click issues

 

Poor Man’s Nokia Lumia 900 Dock

do it yourself

After seeing the Lego dock, but in possession of no Legos, I figured I could 1UP, err down, that masterpiece.
Behold, the box that it came in, dock! With Instructions.

1. Get your At&t box it came in.

2. Cut a small hole in the top cradle area, just above the recycle logo.

3. cut a smaller hole in the inside of the cradle area. Making sure to line up with usb port.

4. Push the usb through both holes.

5. Fold down flap and tuck back in.

6. Tap box flap back and wrap cords around.

7. Place on night stand and plug into the wall.

8. Slide the top of the phone in first, then the bottom.

9. Enjoy!

10. Landscape version to come!

Import contacts in CSV format to Windows Hotmail

Contacts to Hotmail

Now-a-days everyone is linking accounts and data, rather than keeping them in sync. So if you have multiple accounts with an addressbook or contact list, it makes it hard to keep them up-to-date, especially once you unlink them.

1. First export your contacts from your program or web app of choice. For me it was Google’s Gmail.
2. Then from Hotmail, click on Contacts, Manage, then Import.
3. Remember, clicking on an app will link the contacts, not sync. We must choose ‘Outlook’, which will take you to an upload form.

4. Browse and attach your csv and upload.

5. After the upload is complete, you will have the option to merge duplicate contacts.

Windows Home Server Behind NGINX Reverse Proxy

Windows Home Server behind NGINX

I recently install WHS 2011 on my ESXI machine. All web traffic goes through a NGINX server to reverse proxy all my domains hosted another server.
WHS requires SSL and therefore a records needs to be set within the nginx conf file.

First thing to do is install WHS 2011. To help things along, I configured my router to send all traffic to WHS so I can easily setup the remote access and domain name. During this process, a ssl cert is generated and installed into IIS. We will need to export this cert and key and load it onto the NGINX box.

Export WHS Certificate

  1. From IIS Manager, click on Server->Sites->Default Web Sites.
  2. In the right column, ‘Actions’, click Bindings.
  3. Select HTTPS *:433: record and Edit.
  4. Under SSL Certificate, your server name should appear, then click View.
  5. Click the Details tab, then click Copy to File button.
  6. Continue through the wizard and select “yes, export the private key” and check “Export all extended properties”.
  7. Give it a password you will remember, then save it as whs.pfx to your desktop.

Copy it to NGINX

FTP the pfx file to a hosted site or any accessible folder
On the NGINX server, cd /etc/nginx/ssl/

wget http://hostedsite.com/whm.pfx

Convert Certificate

From within the ssl folder, export the certificate:

openssl pkcs12 -in whs.pfx -nokeys -out whs.pem

Export the private key:

openssl pkcs12 -in whs.pfx -out whs.key -nocerts -nodes

Create NGINX WHS Conf

Create conf file

vi /etc/nginx/conf.d/whs.conf

Paste the following and replace INTERNALIP with your internal server IP and servername with your actual domain :

server {
  listen 80;
  server_name servername.homeserver.com;
  location / {
    proxy_pass http://INTERNALIP:80;
    proxy_set_header Host $host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_redirect off;
  }
}

server {
  listen 443;
  server_name servername.homeserver.com;
  ssl on;
  ssl_certificate ssl/whs.pem;
  ssl_certificate_key ssl/whs.key;
  ssl_session_timeout 5m;
  ssl_protocols SSLv3 TLSv1;
  ssl_ciphers HIGH:!ADH:!MD5;
  ssl_prefer_server_ciphers on;
  location / {
    proxy_pass https://INTERNALIP:443;
    proxy_set_header host servername.homeserver.com;
  }
}

Reload NGINX

/etc/rc.d/init.d/nginx reload

Open a browser and navigate to your servers domain.

Upgrading Redmine 1.2.1 to 1.3.0 fails on Windows, Mongrel

Redmine

I previously upgraded my Redmine install from 1.1.0 to 1.2.1 an needed to supply a mongrel.rb file in the config/initialization folder. This was needed because of special requirements for use with Mongrel 1.1.5.

After upgrading to 1.3.0, I copied my normal configuration.yml and database.yml to the config folder following the upgrade instructions, as well as the mongrel.rb to the config/initialization folder. I also updated Rails per the requirements for Redmine 1.3.0 to 2.3.14

I restarted the Redmine service and got a blank white screen. After doing a little digging, I realized that the mongrel.rb was missing the entry for Rails 2.3.14, so I added it, restarted and voila! Fixed.

An updated file can be found here.