I boot up, sign in, type startx, and then hit a keyboard shortcut (in this case Super+T to open a terminal). It takes at least 45 seconds before the terminal opens. Once it opens and the keyboard shortcuts are "set", every time I hit Super+T it opens a terminal window immediately. Or if I wait ~45 s...
I want to experiment with power settings on my laptop to get the most out of my battery, but it's hard to tell what's working without logs. Right now I do nothing to save power other than turn the brightness down, but I want to start with Laptop Mode Tools. Is there an way (other than udev rules and...
I setup LUKS on LVM a while ago. Today, I wanted to create an encrypted swap partition on my LVM so I could enable suspend-to-disk, but then I just noticed that I have an inconsistency in the naming of my root partition. /etc/default/grub GRUB_CMDLINE_LINUX="cryptdevice=/dev/lvm/lvroot:cryptoroot ro...
My current laptop has a single 1TB HDD. It is partitioned like: Partition | FS | Mount Point | Size ---|---|---|--- /dev/sda1 | vfat | /boot/efi | 200 MiB /dev/sda2 | ext2 | /boot | 256 MiB /dev/sda3 | [Encrypted] ext4 | / | 927 GiB /dev/sda4 | linux-swap | | 3.75 GiB I am just using standard dm-cry...
use Foo\Bar; // Qualified name use \Foo\Bar; // Fully Qualified name Why is the first one preferred? The PHP manual has changed, but it used to say Note that for namespaced names (fully qualified namespace names containing namespace separator, such as Foo\Bar as opposed to global names that do not,...
I have mysql (and other services) running on my development machine. I want those services to start automatically, but it's not important that they're running and available the second the computer boots up. I would much rather have a faster boot time. Is it possible to have the mysqld service start...
PHP has been updated to version 7 but I don't want to update yet. I added php to IgnorePkg in pacman.conf, but when I go to update I see that php-apache (and php-mcrypt and everything else) still tries to update. I know that the possible solutions are (a) switch to the AUR package php56 or (b) add p...
I use: reflector -l 200 -f 10 --sort score Which if I understand correctly, takes the 200 most recently synchronized mirrors, picks the 10 fastest ones, and then sorts them by how up to date they are (score / mirror status).
I consider yaourt to be a must-have program, but it's not exactly obscure. My short list: BleachBit (CCleaner for Linux) Dia (Great flowchart program like Visio) Meld (Document comparison dev tool) [gMTP](https://wiki.archlinux.org/index.php/MTP#GNOME_gMTP
I know mysql_* is deprecated, that's kinda the point. I have a lot of legacy code running mysql_query(). I have a custom database driver, but if I were to use grep and quickly replace the old code, that would mean some queries would run through mysql_real_escape_string() several times. What kind of...
Note: maybe an official engine comparison thread would be useful? Wikipedia is overwhelming; we could tailor ours to engines that are useful to indie devs. I was looking at 3d game engines that run on linux and publish to android/iOS. These look quite nice: irrlicht + proton SDK OGRE Even though tec...
I'm not a big fan of sublime, but I love the way it looks. Any text editors or plugins that have the sublime style mini-overview column with scrolling functionality? Here's a JS representation http://django.is/ It's so damn useful, but sublime's nagware is too irritating and $70 is too much just bec...
From what I understand, the processing gain from the 64bit versions of Apache and PHP are not enough to warrant using twice as much RAM. If I have a server with a 2GHz CPU and 512MB of RAM, am I better off using a 64-bit or 32-bit operating system? What features and functions of PHP/Apache would I n...
The linux kernel and linux-headers gets updated a couple times a week. This is annoying because everytime I need to run vmware I need to reboot to load the new kernal/headers. I'm considering switching to linux-lts, but it looks like [linux-lts gets updated](https://projects.archlinux.org/svntogit/p...
I'm making a dropdown menu. wp_dropdown_pages apparently doesn't work for custom post types which aren't hierarchical $custom_posts = get_posts( array('post_type' => 'custom_type', 'numberposts' => -1) ); foreach ( $custom_posts as $custom_post ) echo $custom_post->post_title; I believe this loads a...
Most people use Google Analytics, but I'm thinking about just writing my own. It's going to start simple, something like: $resource = $SERVER['REQUEST_URI']; $wpdb->insert( 'wp_stats', array( 'ip' => $ip, 'time' => time(), 'resource' => $resource) ); But I'm wondering if I'm going to take any kind o...
I've released a few premium themes and I'm looking for a good way to do automatic updates. Obviously the themes aren't in the wordpress repos. I've come up with solutions, but nothing elegant. I'm wondering if someone else has already tackled this problem.