-
I saw this on the Snopes twitter with the headline “Has accused Fort Hood shooter Nidal Malik Hasan continued to draw his Army salary while awaiting trial?” and I shrugged it off as something propagated in conservative-chain-emails-from-elderly-people, but then I clicked it.

this is a bunch of crazy nonsense
-
You can’t claim to be writing a tutorial if you toss in 50 lines of code and pass it off as something stupid like “now we do a little magic…”
Ugh.
-
“Invalid Credentials” - GMail Notifier on Ubuntu
Don’t forget to use an application-specific password. Your regular password won’t be accepted.
-
Xiu Raulynsyn: Design, and why I don't do it
I’m primarily a developer. I say primarily because I occasionally write essays and play music as well, but what I spend most of my day doing is either programming, or learning how to program. Much of that time is spent programming ‘things’ that get used as part of websites. Backend, frontend, I…
-
I think this is the piece of television the nurse who took my blood was talking about (I hadn’t/haven’t seen the show). She said the dude sniffed the other dudes cornhole. I said “cornhole is a verb”, and then we went back and forth for a few seconds on how/why/where “cornhole” belongs in the categorization of words. I’m a fantastic conversationalist.
(Source: ejacutastic, via out-gayed-myself)
-
I locked myself out of my website / Idea about CodeIgniter configs
Yeah, I SSH’d with the wrong password, and now I’m banned. It isn’t the first time, it expires after a while. Here’s a bad combination: I have no letters on my keyboard, I have a 20-char SSH password, including mixed-case letters and special characters, and you can’t see what you’re typing when the terminal asks for your password.
——-
I’m working on a CodeIgniter application that a.) doesn’t use a database, b.) uses the standard $config[] config files, c.) will be configured via a dashboard. It’s all separated into modules, so there ends up being a ton of config files, and it would be a pain to maintain proper permissions for each one. Here’s my solution: A single override.php config file that’s writable by the dashboard. What I’m currently doing is just loading override.php after the respective module’s config file, so any configurable-by-dashboard array keys are overridden. I’m going to see if I can write a hook that automatically loads the override config, but that doesn’t seem feasible since it needs to load AFTER the module config, but BEFORE the rest of the controller. Maybe some hacking on the CI core config loader or something would do it, like after a config is loaded, the override is also loaded.
Edit - Here’s how I did it.
- Create application/config/override.php
- add $config[‘override_is_loaded’] so we can check if it’s loaded, and also because CI doesn’t let you have empty config files.
- Append the following bit of code to config method in CI_Loader (system/core/Loader.php)
- https://gist.github.com/anonymous/b16bd3bac236a5b46e88#file-gistfile1-txt
-
“Cannot use string offset as an array”
I had a lang file, similar to what’s in CodeIgniter. It uses an associative array, with the language code (“en”, “es”, etc.) as an array key, followed by and identifier. Like so:
$lang[‘en’][‘header_slogan’] = “…Like sleeve of wizard.”
This worked on my local server, which has PHP 5.4, and my public server, which has PHP 5.3, but my client’s server, with PHP 5.2, was throwing this error “Cannot use string offset as an array”.
I saw this, but I had no equivalent to $foo = ‘bar’, $lang’s very first instance was (I thought) an array. But, adding $lang = array(); at the top of the lang file fixed it. Why wouldn’t $var[‘key’][‘key’] be created as an array in the first place, I don’t know, but it isn’t. So go ahead and predefine your arrays as arrays.
-
Every morning I look at the clock, and I notice it says 9:XX. And every morning, for a few minutes, I hear Dolly Parton singing “Workin’ 9 to 5, I’m just tryin’ to make a living!” rattling around in my head.
-
(Source: newkidsonmycock11, via out-gayed-myself)
-
I only get six months notice for this? Well good luck enjoying my patronage ever gain.