This blog site is not meant to be any information that is distributed to the general public. It is to serve as shared documentation between the DNSTC developers; however, if you find something useful and would like to use it, go right ahead.

Tuesday, May 24, 2011

Scheduling Cron Jobs on Linux

Occasional we may need to setup some scheduled jobs for clients (or DNSTC websites). I found this website that explains the CRON utility pretty good and gives some great examples on how to modify and manage CRON jobs.

http://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/

Saturday, March 12, 2011

Getting the Word our Using Word

Not only can DNS Technology Consultants, Inc. develop custom www solutions for you, but we have the expertise to help you with making computers work for you and you not work from computers.

Have you ever been in a situation where you want to get something out to everyone, you have to type up a draft... copy/paste it to e-mail, Facebook, send it to your webmaster, post it to Twitter, before you know it, the phone rings and you forget where you were with your announcement.

How would you like to sit at your desktop using MS Word and simply open up a new document, type in some information, click a button… and that new information will go to; your website, your FaceBook Page, and your Twitter account all at the same time?

We can make it happen, contact us today for details; btw… this is exactly how this post was made.

Add a day, a week, 2 weeks, a month or multiple days to any date

Use the following to add time to the current date.

$date = date("Y-m-d");// current date
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 day");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +2 week");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +1 month");
$date = strtotime(date("Y-m-d", strtotime($date)) . " +30 days");

Thursday, March 10, 2011

Removing the Continue Reading From the RSS feed in the TwentyTen Theme

When I started playing with the RSS feeds, I noticed that the feed would truncate and then add a link at the end that said Continue Reading with an arrow. I tried for a few hours to remove this since it was not fitting in with what I was trying to accomplish in the layouts. It turns out that this is actually added by the theme itself to the RSS feed.

For the purpose of using a blog for RSS news feeds, I have been just using the default TwentyTen Theme. You can actually go into the theme and remove that annoying Continue Reading if you want.

Here is how:

  1. Edit the file: [wordpress directory]/wp-content/themes/twentyten/functions.php
  2. Do a search for "Continue Reading" (Normally around line 241)
  3. Comment out the link within the function that starts with return…
  4. Save the file

Removed!


 

 

Thursday, February 24, 2011

Password Protecting a Directory with .htaccess

There have been many occasions where password protecting a directory is the ultimate in web security. This can be used by clients to hide information that they do not want their public to know about or access, it can also be used to secure information for employees of a company.

Instead of writing a tutorial about this, I went to the "Net" and found a great web page resource that will actually create the password file for you...

Here is a quote from that page:

Password protecting a directory can be done several ways. Many people use PHP or ASP to verify users, but if you want to protect a directory of files or images (for example), that often isn't practical. Fortunately, Apache has a built-in method for protecting directories from prying eyes, using the .htaccess file.

In order to protect your chosen directory, you will first need to create an .htaccess file. This is the file that the server will check before allowing access to anything in the same directory. That's right, the .htaccess file belongs in the directory you are protecting, and you can have one in each of as many directories as you like.

The way the password protection works, if there is any page within that directory accessed, the users will be prompted to enter a username and password.

For more information about this: http://www.addedbytes.com/lab/password-protect-a-directory-with-htaccess/


 

Monday, February 21, 2011

Getting the Word out Using Word

Not only can DNS Technology Consultants, Inc. develop custom www solutions for you, but we have the expertise to help you with making computers work for you and you not work from computers.

Have you ever been in a situation where you want to get something out to everyone, you have to type up a draft... copy/paste it to e-mail, Facebook, send it to your webmaster, post it to Twitter, before you know it, the phone rings and you forget where you were with your announcement.

How would you like to sit at your desktop using MS Word and simply open up a new document, type in some information, click a button… and that new information will go to; your website, your FaceBook Page, and your Twitter account all at the same time?

We can make it happen, contact us today for details; btw… this is exactly how this post was made.

DNSTC Welcomes Bloomfield-Mespo Schools

We would like to welcome Bloomfield-Mespo Local Schools to our on-line family.

We began the new design of their website in the last quarter of 2010 and through several e-mail conversations back and forth, the website was officially released the middle of January.

Their new website is running our new version of WSMS and they have been working feverously getting all of their staff up to speed with maintaining their website on a regular basis.

The WSMS system allows them to assign certain web pages to different staff members so that updates are not the sole responsibility of a single person.

You can check out their new website at: http://www.bloomfield-mespo.org.