General Computing
Apache2/MySQL on Ubuntu Configuration
Once you’ve installed apache2 and mysql on your server, you might want to try these configuration changes to make it perform a bit better: In /etc/mysql/my.cnf key_buffer = 16K max_allowed_packet = 1M thread_stack = 64K table_cache = 4 sort_buffer = 64K net_buffer_length = 2K And in Apache2′s config, /etc/apache2/apache2.conf, find the section for MPM prefork [...]
Posted in: General Computing, Linux, MySQL, PHP/MySQL, Tips and Tricks, Topics, Tutorials, Writings | No Comments »
Never Again! Backing up your rails .sqlite3 dbs
Well, with mysql, it’s pretty hard to overwrite your dbs, but with sqlite, it’s real easy. I did this, luckily I only lost about a days worth of work, but nevertheless, I have instituted a new rule for sqlite3 dbs: Hourly backups. Here’s the script: #!/bin/sh D=`date +%H` cp -f /var/www/app/db/production.sqlite3 /var/www/fapp/db/production.sqlite3.bak.$D Related Posts:Rails will_paginate [...]
Tags: Backups, Rails, Ruby on Rails, Shell Scripting, Sqlite3
Posted in: Computer Science, General Computing, Linux, Ruby on Rails, Ruby on Rails, Tips and Tricks, Topics, Tutorials, Uncategorized, Writings | No Comments »
Deploy Ruby on Rails to the Desktop (Ubuntu), as a Debian Package
Introduction to deploying Rails Applications to the Desktop Some things you’ll learn in this series of articles: How to distribute a Rails App to an Ubuntu Desktop How to Compile a custom Ruby installation to avoid conflicting with an existing Ruby install Get automatic updates to all users for free by virtue of being a [...]
Posted in: C/C++ Programming, Computer Science, General Computing, Ruby on Rails, Tutorials, Writings | 1 Comment »
Ruby on Rails Session in Models: Not So Evil Actually
I just finished reading this post from m.onkey.org on how to put your session into your models. First off, I love this guy, and his site, and most of what he says, but I’ve had it up to here with this nonsense. I also kind of felt a little dissed by the PHP comment. I [...]
Tags: OOP, RoR, Ruby, Ruby on Rails, Singleton
Posted in: Computer Science, General Computing, OOP, Ruby on Rails, Ruby on Rails, Tips and Tricks, Topics, Tutorials, Writings | 1 Comment »
Google Chrome Proxy Settings
Wow, google really fell down on the job with this one, using the basic windows/IE connection settings for the internet, I know it’s easier that way, but that’s an inconvenience I don’t need. Chrome is faster, but lacking such a basic feature really makes me not want to use it. It’s almost the principal of [...]
Tags: Rant, Tech Reviews
Posted in: Computer Science, General Computing, Information News, Topics | No Comments »
RubyGems 1.2+ Index not found, gems fail to install/update slow/sluggish
I had this problem while running sudo gem install anything, like sudo gem install sqlite3-ruby or what not, albeit while running Ubuntu in VirtualBox. The fix that worked for me was editing /etc/resolv.conf and using google’s public dns nameservers of 8.8.8.8 and 8.8.4.4 Now it works fine… Go figure. Related Posts:HowTo set hostname/domainname on linuxWhere [...]
Tags: Command Line Commando, Errors, Linux, Ruby, RubyGems
Posted in: Computer Science, General Computing, Information News, Topics, Tutorials | No Comments »
dovecot fatal listen address already in use
Here’s the best and quickest solution I could find: dpkg -r dovcot-common dovecot-pop3d etc… apt-get install popa3d And you’re done. Not, etc.. isn’t a package, just dpkg -r the ones you installed, like dovecot-imapd or such. Fixes the issue everytime. Related Posts:Developer BluesRubyGems 1.2+ Index not found, gems fail to install/update slow/sluggishFuck Kindle and AmazonSOAP [...]
Tags: Command Line Commando, Errors, Humor, Rant
Posted in: Computer Science, General Computing, Humor, Information News, Topics, Tutorials | No Comments »
HowTo: C Function Pointers for a Linear Search, void star pointer trick, comparison using memcmp, string replace
Well, I was messing around in C again today, sometimes I just love C, it’s a fun language when you understand it, which I really don’t, but am beginning to grok it. Anyway, I was checking out a little tutorial on C and saw this cool little trick that I thought I would share. It’s [...]
Tags: C/C++, HowTo, Programming
Posted in: c/C++, Computer Science, General Computing, Topics, Tutorials | No Comments »
The Essentials of Computer Programming, Part I: Binary Math (Addition, Subtraction, Multiplication, and Division)
At some point or another I got it into my head that I wanted to learn more about computers, and how they work. There seem to be a lot of places to start, even down at the deep hardware level, but, from a software perspective, the lowest it goes, is Binary. What the hell is [...]
Tags: Programming
Posted in: Computer Science, General Computing, Topics, Tutorials | No Comments »
