Quantcast
Channel: Albertech.net
Browsing all 19 articles
Browse latest View live

Fix: Crashplan backup crashes

If you have a lot of data to backup, chances are Crashplan will start crashing once you have a certain number files. By default, Crashplan allocates 512 MB of memory for the Java process. I have almost...

View Article



Microsoft SQL Server 2008 R2 Firewall Ports

Required ports for SQL Server 2008 R2. Enable these ports in the Windows Firewall. 135  Transact SQL Debugger 1433  SQL Traffic 1434  SQL Browser Traffic 2383  SQL Analytics Traffic 4022– SQL Broker...

View Article

Adding preview capability for PSD files in Windows Explorer

Sage Thumbs is an excellent utility for adding the ability to preview Photoshop PSD files in Windows Explorer. The thumbnail preview capability speeds up the workflow significantly in Photoshop,...

View Article

Fix: Editing tables in Access 2010 with Microsoft SQL Server 2008 R2 connection

On a recent migration from Access 2010 to SQL Server 2008 R2, a client was having the following issue when inserting a row in the middle of a table or modifying the field size within the Design View....

View Article

Zend Form – Adding a checkbox element with label to the side

Here’s the fastest way to add a checkbox element with a label to the side of it (inline) using the Zend Framework. By default, the checkbox is put on a separate line after the label,which isn’t a...

View Article


Zend Framework – Shorten the parameter URL by using custom routes

If you want to consolidate a single parameter into the URL path, it is possible via Zend Rewrite. For instance, you currently have mysite.com/users/edit/userid/1234 and would like to use...

View Article

Ruby on Rails: Generate dropdown menu from JSON key value pair

If you want to generate a dropdown selector menu from a JSON using Ruby on Rails, you can do it with two lines of code (three including the JSON string). In your controller, use the JSON parse method...

View Article

Installing Phusion Passenger 4.0 with SELINUX and Apache on RHEL 6.3

Installing Phusion Passenger 4 with SELINUX enabled is quite a challenge, especially with the lack of documentation out there with the latest version of Passenger. Installation Notes: Follow the...

View Article


VPS Uptime List

Here’s a site that lists the uptime of VPS providers. From my experience, Knownhost is solid (although pricier) for a VPS and they currently have a 99.983% uptime listed. They are a managed VPS...

View Article


PHP – Removing alpha characters from an entire array using closure

Here’s a quick way to remove all alpha characters from an array using PHP closures (PHP 5.3+) array_walk($myarray, function(&$element){ $element = trim($element,"ABCDEFGHIJKLMNOPQRSTUVWXYZ");...

View Article

Fix: LoadError: no such file to load — mysql2/mysql2 with jRuby and Warbler

I recently transitioned a Ruby on Rails Passenger server to jRuby with Tomcat and encountered an error caused by the Gemfile. “no such file to load — mysql2/mysql2 LoadError: no such file to load —...

View Article

Preserve remote IP address with HAProxy on CENTOS

If you install HAProxy on your server, you will notice that the remote IP address in the logs and webapps will display the IP of the proxy and not the remote IP address of the client. You can set...

View Article

Reset vCenter Single Sign On Master Password VMWare 5.1

In order to reset the vCenter Single Sign On Master Password running on a Windows server for the admin@system-domain user, you will need to have local admin access and SQL Server Management Studio...

View Article


Migrating vCenter to new Windows 2012 Server

Here are some notes on a recent migration I completed for vCenter. The source machine was a Windows 2008 R2 Server box that was running vCenter 5.1 and the new machine was a Dell R320 running Windows...

View Article

Fix: Windows 7 clients unable to connect to Samba 3

If you are using Samba 3 and have issues with Windows 7 clients connecting to the share, the easiest fix is to upgrade to Samba 4. A recent Windows security update released in Fall 2014 causes an error...

View Article


Custom OmniAuth Callback URL

If you have Ruby on Rails App and want to use a custom OmniAuth Callback URL (Something other than /auth), there is a configuration value that you can set. /config/initializers/omniauth.rb...

View Article

Permit nested attributes in Rails 4

In order to use nested attributes in Rails 4, one must use the params.require method inside controller with the _attributes keyword and the list of fields inside the nested model. This is a good option...

View Article


Rails – jQuery generating extra HTML headers after AJAX call

If you get the following extra HTML headers after using the jQuery AJAX method on a page and immediately clicking on another link: 0 HTTP/1.1 200 OK Cache-Control: no-cache, no-store, must-revalidate...

View Article

Easiest way to filter out text in a MySQL field

Example:  Removing the “.0” from an Excel import into MySQL MYTABLE – The MySQL Table Name FIELDNAME – The field you wish to edit the data Make sure you have a primary key defined, I usually set mine...

View Article
Browsing all 19 articles
Browse latest View live




Latest Images