thuannvn.blogspot.com
All about linux: December 2011
http://thuannvn.blogspot.com/2011_12_01_archive.html
Wednesday, December 28, 2011. Guide to programmatic node creation in Drupal 7. I had to import a few thousand items from a legacy database to a Drupal 7 site and found that it was quite easy to do so programmatically. Here I'll first show you the basic code for adding nodes and then I'll talk about different field types, including how to add images and term references (taxonomy). If you have any questions, just ask in the comments and I'll be happy to help! Basic node creation - example. Foo m bar fnord?
thuannvn.blogspot.com
All about linux: Purpose Of ulimit Linux Command
http://thuannvn.blogspot.com/2009/01/purpose-of-ulimit-linux-command.html
Friday, January 16, 2009. Purpose Of ulimit Linux Command. Is a Linux built-in shell command, which provides control over the resources available to the shell and to processes started by it, on systems that allow such control. That is to say, each user login session may have different limit of access to system resources. For example, an ordinary user login may not allow to create core dump file while a program crash, except for developer user account. To print the soft limit. Type ulimit -Hc unlimited.
thuannvn.blogspot.com
All about linux: November 2011
http://thuannvn.blogspot.com/2011_11_01_archive.html
Monday, November 28, 2011. How to setup Search API with Apache Solr. Is a Drupal 7 search framework module. It allows you to create custom search pages on any URL and integrates with a few search backends. In this article I’ll show you how to setup Search API with Apache Solr. On a mac (10.6). For more details check out the Search API. If you already have solr setup skip. To the Search API section. To double check run java -version in terminal to see which version is installed. Next go to the download.
thuannvn.blogspot.com
All about linux: Setting up, Configuring, and Using Kannel to send/receive SMS messages
http://thuannvn.blogspot.com/2009/01/setting-up-configuring-and-using-kannel.html
Tuesday, January 13, 2009. Setting up, Configuring, and Using Kannel to send/receive SMS messages. I recently had the oppportunity (necessity) to set up a web application that interacted with many of the users through SMS. Messages in addition to the more traditional HTML. Interface. While there are a number of possible software solutions for GSM. Modems on Windows, on Unix-like platforms the most commonly used one is Kannel. It also has the advantage of being open source and thus very, very free. The we...
thuannvn.blogspot.com
All about linux: How to show/hide block for centain type of contents in Drupal 6
http://thuannvn.blogspot.com/2012/01/how-to-showhide-block-for-centain-type.html
Monday, January 2, 2012. How to show/hide block for centain type of contents in Drupal 6. Show Block for Specific Content Type (my case is thai). Hide Block for Specific Content Type (thai). More inform, see here: http:/ drupal.org/node/115419. The above codes are used for Kawaii Kindergarten sites to control English and Thai menus.See here: http:/ ibc.ac.th/kk. Show Block for Specific Content Type in Drupal 5. Posted by Thuan Nguyen. Subscribe to: Post Comments (Atom). Csync2 is so cool. Getting the tot...
thuannvn.blogspot.com
All about linux: Fix kernal panic in Ubuntu server 9.04
http://thuannvn.blogspot.com/2012/01/fix-kernal-panic-in-ubuntu-server-904.html
Monday, January 2, 2012. Fix kernal panic in Ubuntu server 9.04. Yesterday (Feb 26, 2010), my web server was down with the message: "kernal panic. cannot access ex4 file on root.grub.". I fixed it today with the following steps:. 1 Reboot with a Ubuntu Desktop live-cd, to check the file system. What I've got:. 50 gb for /. 20 gb for /var. 320 gb for /home (/home/server/www). 2 copy mysql data and web files. 3 Download the old server file at http: release.ubuntu.com release (server 904). Csync2 is so cool.
thuannvn.blogspot.com
All about linux: August 2010
http://thuannvn.blogspot.com/2010_08_01_archive.html
Tuesday, August 31, 2010. Rsync with a non-standard ssh port. After some searching, the man page of rsync finally offered a solution:. Rsync -avz -e "ssh -p $portNumber" user@remoteip:/path/to/files/ /local/path/. Passing the port parameter to ssh with the -e option worked like a charm. :-). This is why Unix rocks. Posted by Thuan Nguyen. Links to this post. Labels: rsync ssh port. Thursday, August 26, 2010. How to Set Private Nameservers on Domain Names. Courtesy of our new Knownhost. To use, like this.
thuannvn.blogspot.com
All about linux: January 2012
http://thuannvn.blogspot.com/2012_01_01_archive.html
Saturday, January 7, 2012. ClamAV on CentOS 5.5. 1 Download the file using wget. Sudo wget http:/ packages.sw.be/clamav/clamav-0.96.4-1.el5.rf.i386.rpm. Sudo wget http:/ packages.sw.be/clamav/clamav-db-0.96.4-1.el5.rf.i386.rpm. Sudo rpm -ivh clamav-0.96*.rpm. We are up to date. 2 To run antivirus and print infected files. 3 To remove infected files and emails. Clamscan -ri - remove /home. 4 Running as Cron Daily Job. 02 1 * * * root clamscan -R /var/www. 00 11 * * * * root freshclam. Links to this post.
serverlinux.blogspot.com
Linux Server Security Secrets and Administration: July 2015
http://serverlinux.blogspot.com/2015_07_01_archive.html
Linux Server Security Secrets and Administration. Linux Security and Administration with programming. Wednesday, July 22, 2015. After 10 years i started this blog, now i decided to keep going on a private domain and hosting. I hope the many people who was there to read or comment could keep on reading in the other site, i will be much more motivated knowing that the content will not be used to be copied or translated, leaving me without that coffee :-). Change please the link for this one:.