Linux
Qt C++: Threaded Communication with Artema Hybrid on Linux
Communicating with an Artema Hybrid CC Payment device is actually deceptively simple. I’ve written an application what uses a webkit widget exclusively for the UI display, and so I hook into the Javascript to provide some extra functionality to the app, in this case, reading and writing to/from the Artema Hybrid device. The documentation that [...]
Tags: C++, C/C++, HowTo, QT, Tips and Tricks
Posted in: c/C++, C/C++ Programming, Computer Science, Javascript Tutorials, Linux, OOP, Qt, Tips and Tricks, Topics, Tutorials | No Comments »
Ubuntu, Find large files by size
Here’s a handy little command for finding files in a directory over a certain size. $ find * -type f -size +90000k -exec ls -lh {} \; | awk ‘{ print $9 “: ” $5 }’ Related Posts:No Related Posts
Posted in: Linux, Tips and Tricks, Topics | No Comments »
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 »
HowTo set hostname/domainname on linux
If you’ve gotten this error: hostname: Name or service not known when typing hostname -f, then here is a solution. I got this error while trying to install Plesk. I couldn’t find a single clear response, most people spent their time showing how smart they are by explaining how host names work, and what it [...]
Tags: Command Line Commando, HowTo, Linux, Server
Posted in: Computer Science, Linux, Tips and Tricks, Topics | 1 Comment »
Where is that method/function/class defined at?
About the only reason I kept jEdit around was because of the search function, it was nice using that multi file search when you are on a time crunch and have to mod someone elses code. No more of that shit. I installed ubuntu on a VM, and was like shit, jEdit’s recursive open plugin [...]
Tags: Command Line Commando, HowTo, Linux, Tips and Tricks
Posted in: Linux, Tips and Tricks, Topics | No Comments »
