Posts

Showing posts from December, 2013

Removing *.ext files from your volumes

Works for all linux based machines. :) find . -iname "*.txt" -exec rm '{}' ';' find . -iname "*.sfv" -exec rm '{}' ';' find . -iname "*.nfo" -exec rm '{}' ';' Replace the . with your location. Most of the time I'm located in the folder to execute the command. :) Lovely ^_^

CodeIgniter MSSQL Statement Has Been Terminated

We were spending hours trying to figure out the issues why our result sets weren't completed when returned. Mins were spent trying to figure out the stored procedure but we were able to identify the issues coming from our php setups over on the web server end. Finally resorted to freetds being the issue. Logs were just pilling up indicating the issues with bad stored procedure writing. dbutil.c:86:msgno 515: "Cannot insert the value NULL into column 'LaunchDate', table 'tempdb.dbo.#ProductGridView____________________________________________________________________________________________________000000000305'; column does not allow nulls. INSERT fails. Oh lala! Its fixed! "You don't make friends with salad.. "

Setting Up CI From Scratch

ServerAdmin webdeveloper@developer.com DocumentRoot "/var/www/htdocs/your-directory" ServerName your-url.dev ErrorLog "logs/error_log" CustomLog "logs/access_log" common Enable virtual host in httpd config file Change the Directory setting in httpd config file Setup /etc/hosts to point it correctly Install .htaccess file on the directory Chmod +x /var/www Restart Apache Voila!

Aaaaah Melbourne Love

Image
Am missing you so much.

Bash Scripting

Locate this: /etc/bashrc Add this: PS1="\n\[\033[1;36m\]\u\[\033[1;37m\] \[\033[0;36m\]`date`\n\[\033[0m\][\[\033[1;33m\]\w\[\033[0m\]]" And you'll look just wonderful!