Posted by Suhas on October 22, 2012 ·
My friend wanted access to a computer at college because he was working on his college project where they had to create a cloud farm using OpenStack.
He wanted to work from home (that is one of the perk if you are a software person). The computer was behind the college NAT. So, doing something like this would need the SysAdmin and presumably a convoluted process.
I found this nice remote forwarding [...]
Posted by Suhas on August 26, 2012 ·
I had been looking for a WordPress WXR (WordPress eXtended RSS) export file splitter as some hosts has limits over the upload file size limit and at times, I don’t get root access to edit the PHP.ini to lift the limits.
Windows has a neat little tool that helps people split WXR export files. http://www.rangerpretzel.com/content/view/20/1/
Sadly, at the time of this writing, none seems to be [...]
Posted by Suhas on July 3, 2012 ·
Another quick little snippet. This is when you use it in a loop.
$my_post = array();
$my_post['ID'] = $post->ID;
$catarray = array(31); // 31 is the cat ID you want to assign
foreach((get_the_category($post->ID)) as $category) {
array_push($catarray, $category->cat_ID);
}
$my_post['post_category'] = $catarray;
wp_update_post( $my_post [...]
Posted by Suhas on May 2, 2012 ·
Here’s a quick snippet to install Ruby on your Ubuntu system. RVM = Awesomeness!
login as single user, not root.
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer )
echo '[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function' >> ~/.bashrc
source ~/.bashrc
Check out the [...]
Posted by Suhas on November 10, 2011 ·
If you are new to linux this might be a little difficult. Once you have some basics nailed, its super easy. Here’s how to get it working without worrying about usergroups etc etc. I just wanted to get it working with my WordPress setup (Apache).
First, install vsftpd
sudo apt-get install vsftpd
Configure your installation.
sudo nano /etc/vsftpd.conf
or
sudo vi /etc/vsftpd.conf
You need to have [...]
Posted by Suhas on November 6, 2011 ·
I, recently, switched to the EC2 virtual instance. I wanted to check if the website is online. As usual I used the “ping” command. I thought my server was down (kinda freaked out) but the website on the browser was working fine.
All I needed to do was to enable the ICMP requests:
1) Log into AWS account.
2) Click on “Security Groups”. Choose the required security group.
3) Click [...]
Posted by Suhas on October 25, 2011 ·
Hi all,
I’m open sourcing my txtweb app @pushmail – An app that’ll send push email notifications via SMS.
What is @pushmail
It is an SMS app on the txtweb.com platform with which users can get instant email notifications via SMS. If they choose to, they can read full emails and reply to them. The user just has to setup a simple email forwarder. http://suhastech.com/mail
The “I [...]
Posted by Suhas on October 25, 2011 ·
Go to run –> type ‘cmd’
change directory to the PHP folder. You might have a different version.
cd C:\wamp\bin\php\php5.3.5
Run your PHP command like “php -l file” etc.
Posted by Suhas on October 20, 2011 ·
I recently moved to an EC2 instance because I needed a little more freedom. Plus, the 1 year free tier looked very attractive.
The pretty permalinks on my wordpress installation stopped working. Most Google searches told me to change the AllowOverride None to AllowOverride All. I tried numerous files. Finally, it seems there were 2 occurrences of the same string in the httpd.conf file.
You had [...]
Posted by Suhas on October 9, 2011 ·
The inefficiency of Skype’s chrome plugin can be quite annoying at times.
There was also no permission prompt to install the Chrome Plugin, that’s not right. And the Plugin doesn’t list in the Extension settings.
Anyways, You can disable the Plugin by typing “about:plugins” in the address bar. There, disable the “Skype Toolbar”.