Custom Search

Oct 30, 2011

Are w3svc1 log files getting very large, taking up too much of your Windows Server hard drive space?

Microsoft Windows Server 2003 is a pain to maintain. It doesn't automatically clean any log files, and recently I had to automate the clean up for another set of log files that grew to 100+ GB in size.

I have the disk space monitored using an in-house script, I put together. Soon you'll be able to get it at: http://radicmonitor.blogspot.com/

I received an email letting me know that the server is running low on hard drive space. After reviewing the graphs, I noticed that in the past 5 days, the free space went from 40GB down to 90MB. This is a problem.

To locate the problem I used an awesome tool I have used for several issues before: JDiskReport

To quickly resolve the problem, I followed the advice in this thread: http://social.technet.microsoft.com/Forums/en/configmgrgeneral/thread/d989b249-0159-41fc-b78c-1f1d91ce8bb3







Basically, you have do the clean up yourself. Just schedule an automatic cleanup every Sunday:

Just invoke the task scheduler using the following command:


at 12:00 /EVERY:Su Forfiles.exe -p C:\WINDOWS\system32\LogFiles\W3SVC1 -m *.log -d -30 -c \"Cmd.exe /C del @path\"  



12/04/2011: COMING SOON - A script to customize the above command for your environment. Add yourself to my email update list above.


Adjust the paths and the schedule to fit your needs.


NOW you have to go back to your event logs and see what's causing the logs to blow up. 

Let me know if this helped you in the comments section below.


Oct 25, 2011

How Can a Business Make a Profit Selling on eBay?

8214827
Selling on eBay can sometimes lead to losses for many businesses. In the last year, I've learned a proven recipe for making money as a small business selling computer hardware on eBay. These are the steps that can almost always guarantee sales on eBay.

 

 


analog-clock_v1.0Step 1: Know what you paid for your items. 

Keep an inventory. A simple spreadsheet should suffice. If you have employees, account for your time and their time in handling the items. Treat their time spent as part of the cost, but don’t over-do-it. If some products take more time to prepare, treat their time as sunk costs and move on.

 

 
 
Step 2: Terapeak.com - This is where you find out how much you should sell it for.
 
!!d-WUd!BHU~$(KGrHgoH-CoEjlLluzl BKgEtzLcC!~~_27
Terapeak lets you "Get eBay Data, Sell Smarter, & Increase Profits". It primarily helps you find out how much your item is worth to eBay buyers.


Terapeak is also a great tool to find out what your competitors are selling. It lets you search for sold and unsold listings in the past 7, 30, 60, 90 and 90+ days.


It's a tremendous tool for eBay sellers. Technically, if you price your items according to what buyers are paying, you're almost guaranteed a sale.

Sign up here: http://www.terapeak.com ($25 / month minimum)
 
 
 
 
 

calculator
Step 3: Use an eBay Fees Calculator.
 
http://www.rolbe.com/ebay.htm - This is where you find out how much profit you're likely to make (roughly)

If you're paying for an eBay store you need to select "Basic" stores level to get accurate fee information.

 

 



md5665Step 4: Automate fancy listings.
 
http://www.AuctionSound.com - This is the tool you're going to use to upload "fancy" eBay listings with nice pictures.


Check out my other post on AuctionSound (http://www.itbangbang.net/2011/10/how-do-you-automate-ebay-and-craigslist.html) which also lets you upload directly to Craigslist.
 
For used equipment use stock item pictures. It makes listing easier.
 
Download pictures from Google Image Search.
 
List items in 1 day, 3 day and 7 day durations so that you can theoretically sell throughout the week.
 
 

 
Turbolister2Step 5: Have a ton of similar items? Need them uploaded quickly?

eBay Turbo Lister - FREE eBay Tool that lets you quickly duplicate listings.

Useful for creating dozens of duplicate items. Lets say we have 20 identical items. You can just duplicate the item 10 times in Auction Style Listing.

Fixed Price listings are usually allowed only 1 per category, therefore having 20 listings pop up versus just 1 is an instant benefit.

 
 
 
Have any comments or tips for me?
 
Leave them in the comment field below this post.
 
Happy Selling!

How do you automate eBay and Craigslist Listings?

While browsing eBay listings, I recently found an online tool that allows you to create professional auction listings using amazing templates, and an easy to use interface that just works. In addition, the tool even lets you automatically upload professional posts to Craigslist as well.

Here are the pros and cons:

Pros:

  1. Only tool I have found so far that lets you automate Craigslist posts
  2. Creates great looking auctions and craigslist posts.
  3. Hosts your images and automatically resizes them for you.
  4. Manages your inventory.
  5. Lets you sell for other people and make a profit.
  6. Works well, and it's easy to use.

Cons:

  1. Not free; Minimum cost is $50 per month
  2. Only worth it if you're a business with lots of items to sell.

Here's a tip: If you're uploading to Craigslist, choose the simple layout with anonymous reply. It most closely resembles what you would upload if you were not using an automated tool.

Check it out at: http://www.auctionsound.com/





Video of the product in action:

Oct 24, 2011

How to use and force SSL with CodeIgniter PHP Framework in Ubuntu running Apache 2

These instructions explain how you can have CodeIgniter (or any other php framework) load certain pages using ssl.

Using this setup, you can allow visitors to visit a site at http://www.yoursite.com/ using standard non-SSL pages, and automatically force SSL when a visitor loads a controller such as http://www.yoursite.com/SSLFOLDER

SSLFOLDER will always load using SSL, regardless of whether https:// was used or not when calling the controller.


Here are the instructions I used under Ubuntu 10.04

Step 1: Create Self-Signed SSL Certificate

I used the steps outlined here: 
https://help.ubuntu.com/8.04/serverguide/C/certificates-and-security.html

Summary

Go to the home directory by executing the following command:

cd ~

Generate the keys for the Certificate Signing Request (CSR) by running the following command:

openssl genrsa -des3 -out server.key 2048

Enter an 8+ character passphrase when prompted.

Create the Certificate Signing Request (CSR) using the following command:
openssl req -new -key server.key -out server.csr

OPTION 1: If you are actually going to be in production, then at this point you would submit the CSR to an online certificate authority (CA) for processing. Then you would continue using the CRT file received from the CA.

OPTION 2: For non-production environments, you can create the self-signed certificate using the following command:

openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt

 Then copy the certificate and key to their corresponding folders:

sudo cp server.crt /etc/ssl/certs
sudo cp server.key /etc/ssl/private

Step 2: Edit Apache 2 configuration files (Ubuntu)

Edit /etc/apache2/sites-enabled/000-default

Insert the following outside of the <VirtualHost *:80></VirtualHost>  tags

The top of the file works.

<VirtualHost *:443>
        SSLEngine on
        SSLCertificateFile /etc/ssl/certs/server.crt
        SSLCertificateKeyFile /etc/ssl/private/server.key
        DocumentRoot /var/www
</VirtualHost>


Step 3: Enable the SSL module in Apache 2

Enable the SSL module in Apache 2 by running the following command:

a2enmod ssl


Step 4: Restart Apache 2 Web Server

Run this command from the command line:

sudo /etc/init.d/apache2 restart

Enter the passphrase you previously chose when generating the CSR 


CodeIgniter Related Steps

I found a useful post on configuring CodeIgniter to always redirect protected pages to the SSL site.


I chose Option 1 and did the following:

Edit the file /system/application/config/config.php, and set the base_url to the non-ssl site as follows:

$config['base_url'] = "http://www.yoursite.com/";

Then edit /etc/apache2/sites-enabled/000-default and under the <VirtualHost *:80> tag enter the following for each folder you'd like to protect with SSL

RedirectPermanent /sslfolder https://www.yoursite.com/sslfolder

NOTE: Omit the trailing slash after sslfolder 


That's it, now restart Apache using Step 4 instructions and visit http://www.yoursite.com/sslfolder

You should see that sslfolder is now shown using SSL

If you see SSL errors stating an invalid certificate its because you're using a SELF-SIGNED certificate. This is fine for testing, but for production you'll need to get a CRT file by buying one from an online Certificate Authority.

HINT: Try GoDaddy and use one of their online coupons for a discount.



Visit one of my sponsors: