2011
11.11

I’ve created a fix for single line if, while, and for statements, and adding a space between ){ for bracketed statement blocks.

There’s a Macro to run codeformatter, then execute the script, and relocate you back to the original cursor position.

If you find a bug post the test case and I’ll get around to it when I can :)

Macro Setup — CTRL+SHIFT+(~ or `)
AutoRun: False

Shortcut: Ctrl+Shift+Oemtilde

Entries:

InvokeMenuItem|RefactorMenu.CodeFormatter
InvokeMenuItem|RefactorMenu.OrganizeImports
ExecuteScript|Internal;C://pathto//fixifstatements.cs

** Make sure to change the path (C://pathto//fixifstatements.cs) to the correct location of the script! **

Script code is here: http://pastebin.com/Qt5W73mR

Hope this eases some minds :D

2011
11.09

I found a solution to my own personal issues with trying to connect to multiplayer games, I would always get the “Unable to connect to host” or “Waiting for players” messages and get dropped back to the menu.

My solution was to disable blocking of anonymous internet requests on my router.

The setting was under “Security”, and “Firewall” tab. (For my Linksys)

Hope that helps someone :)

2011
10.10

As a web developer / designer, I do a lot of things that make my workflow easier, one of them is using a local staging server for sites I am working on in the initial build phases.

The first step is modifying the httpd-vhosts.config to point to a local folder for a specific domain. This is better than using subfolders in a single public folder, because you can use absolute relative paths (ie: /css/, and in CSS files /images/logo.jpg)

Example insert into the vhosts configuration file:

<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "Q:\_WORK\projectname\www"
ServerName projectname.stage
</VirtualHost>
<Directory "Q:/_WORK/projectname/www">
AllowOverride All
Order allow,deny
Allow from all
</Directory>

The *:80 string tells Apache to listen on any IP address for the connection (ie: your internet IP address), you can change this to 127.0.0.1 if you don’t want the website to be available outside of your computer (you would need a real internet based DNS entry for that, and access to the DNS Zone for the domain).

The DocumentRoot directive should match the Directory path exactly, aside from the use of back/forwardslashes as used above.

So now to make the projectname.stage address actually work, we need to add a DNS entry pointing it to our IP address (127.0.0.1)… there’s a few ways to do this.

1) You can edit your hosts file (c:\windows\system32\drivers\etc\hosts in windows, /etc/hosts in most *nix based systems) to include a line:

127.0.0.1 projectname.stage

or 2) Use a local DNS proxy server (with wildcards!!)… I use Acrylic, which allows wildcards, so I don’t need to configure a new stage server name in my hosts every time.

You can edit the Acrylic hosts file (mine is at C:\Program Files (x86)\Acrylic DNS Proxy\AcrylicHosts.txt), adding the following line and restart the proxy:

127.0.0.1 *.stage

This will make it so any usage of the .stage TLD will point to your local machine. So all you need to do is have the virtual host configured and Bob’s your uncle!

Now whenever you hit projectname.stage in your browser it will point towards your loopback IP address. Hitting http://projectname.stage would connect to Apache, sending it the hostname in the requests, and Apache will render the files in the location specified in your vhost config!

*UPDATE*

As soon as I wrote this, I thought to myself, how AWESOME would it be to not even have to configure each virtual host??? With Apache 2 it’s totally possible (can I get a hell yes?)

As stated here you can use Regular Expressions to dynamically point to directories.

You need to uncomment / add the following to httpd.conf:

LoadModule vhost_alias_module modules/mod_vhost_alias.so

And then add the following to your vhosts config:

<VirtualHost *:80>
UseCanonicalName Off
ServerAdmin webmaster@dummy-host.example.com
VirtualDocumentRoot "Q:\_WORK\%1.0\www"
ServerAlias *.stage
ServerName *.stage
LogLevel Debug
</VirtualHost>
<Directory "Q:/_WORK/">
Options -Indexes FollowSymLinks
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>

This, along with your wilcard DNS setup, will point  *.stage to the appropriate folder;

blah.stage => q:\_WORK\blah\www

abc1234.stage => q:\_WORK\abc1234\www

Without ever needing to touch your config files again…. YEAAAAAAAAAAAAA!
Sorry. got super excited.

2011
05.19

dang ya’ll.

and then…

gucci gucci – kreayshawn (lawrencealan totally unauthorized remix) from la on Vimeo.

2011
05.09

Are you experiencing what seems like thrashing or pauses / breaks in audio or video playback? Audio pausing for a second and then resuming somewhat randomly?

I may have the solution.

I run quite a bit of new technology on my computer, so I have strange applications and drivers installed, and even strange IP routing configuration and a hosts file that helps me when developing websites.

I’m what most would call a “power user”

Not too long ago I started experiencing audio issues with both my on-board and external Native Instruments audio2dj.

The fact that it occurred when using either meant it was either software or hardware related and not specific to the audio output.

First I reset the BIOS, changed the HPET, and set the USB 3.0 transport to xHCI.  This seemed to help a bit, but I still had some issues.

I loaded up dpclat.exe and sure enough, I was getting large spikes every few seconds.

I did some additional searching and found that there was an issue with the BIOS version I was running on my GIGABYTE GA-X58A-UD3R.  Using @BIOS, I updated to the “latest” BIOS version from the USA server (which seems to have gotten much much more reliable by the way)

This helped some, but I was still getting issues. I closed out the Gigabyte EasyTune application and my spikes all but disappeared.

I was still getting spikes, but now it was less than two or three an hour… I tried RATT3, which doesn’t seem to report anything in Windows 7 64bit (my reports were all empty)… and then, somehow, I found this little golden nugget:

Resplendence Software’s LatencyMon

LatencyMon allows you to see max execution time and DPC count per driver.

Using all of the above tools, I was able to eliminate / update drivers (see: nVidia, Himachi) and services that were causing DPC latency spikes.

I can finally listen to music and watch flash videos without annoying pauses!

Hope this helps someone out there.

2011
04.26

This is just a note for the people using the DisplayDuino LEDMatrix board, and looking for connectors.

I was able to locate, order and use successfully the a 2.54mm 4-pin polarized connectors found here:

http://www.protostack.com/connectors/polarized-headers/polarized-header-4-pin-female

For the wiring I am using lightweight and thin Dollhouse Miniature Electrical wire.

Just thought I’d post this to save people the trouble of narrowing the connectors down!

2011
03.19

This evening the moon is going to be the closest it’s been to Earth since 1992, giving a great view for photographers and astronomers.

Another Supermoon will not occur until 2016… you know, if we are still around.

Be safe tonight, who knows what will happen! Carpe noctum!

http://en.wikipedia.org/wiki/Supermoon

2011
03.15

Was a hassle to find these LinkedIn buttons, maybe this post will help others locate them more easily:

Official buttons from LinkedIn to use on your site. For more information about how to setup a “Login with LinkedIn” experience, please see this blog post:

http://developer.linkedin.com/community/apis/blog/2010/04/29/oauth–now-for-authentication

log-in-linkedin-large.png

log-in-linkedin-small.png

linkedin-large.png

linkedin-small.png

2011
03.13

BAD DECISIONS @ CAMEO

Make better BAD DECISIONS next weekend in Brooklyn, with a soundtrack by some of the best:

J PHLIP (Dirtybird, Liason) BERLIN
ATOMLY (Wolf+Lamb, Atomiq Records)
MEANS and ENDS (Detek, Black Nation Records)
JD HARRINGTON (fat camp, den of thieves)


CAMEO
96 N Sixth Street
Brooklyn, NY 11211
$5 before 12:30am with RSVP

RSVP for the event HERE

2011
03.13
PowerAMP QR

PowerAMP QR

Exciting. Android’s most popular third-party audio player is getting it’s own API.

It is scheduled for the release after build-328.  There will be earlier pre-release  (non-market install) version of PowerAMP available with the API.

APIs will be completely intent based (no service), events, notifications, etc.

All documentation and details  about the API will be published on the forum at powerampapp.com/forum/.

Get PowerAMP: