Automatic Deal Finding Machines


Step 1 – Daily Deal Websites
There are websites that collect deals. Each day there are new deals. If you are looking for something specific these sites might not have you you’re looking for today. As time goes on there’s a good chance you’ll find what you’re looking for. These are the places I go to find deals but there are probably more. If you know of any let me know in the comments.

  • Amazon’s Gold Box 
    Daily specials offered with limited inventory and limited time. You must act quickly to catch these deals.

    Website: http://www.amazon.com/gp/goldbox/
    RSS Feed: http://rssfeeds.s3.amazonaws.com/goldbox

  • Deals2Buy
    This site collects deals from Dell, Apple, Buy.com, Overstock, Circuit City, and more. Their deals last 1-3 days. You’ll find cameras, computers, home decor, jewelry, and other items listed daily.

    Website: http://deals2buy.com/
    RSS Feed: http://deals2buy.com/rssgen/alldeals.xml

  • SteepandCheap
    For the outdoor enthusiasts wanting new gear without paying big bucks. Find clothing, climbing, hiking, cycling, and camping gear everyday. This site is run by Backcountry.com so the gear rocks.

    Website: http://www.steepandcheap.com/
    RSS Feed: http://feeds.feedburner.com/SteepandCheap

  • Craigslist
    You’ll find some of the best deals of your life on craigslist. You’ll have to be patient and quick to get the cream of the crop. There is a whole post dedicated to finding deals using craigslist RSS feeds.

    Website: http://craigslist.org/
    RSS Feed: Find your [State][City][Searchterm] and click on the RSS button once you’ve arrived. The post explains it in more detail.


Step 2 – Filter Your Feeds

This step will do the heavy lifting for you. Instead of going to each site everyday your filter will find the keywords you define. When it finds the item you want it will report back.

There are three popular RSS feed filtering sites. You will enter the RSS feed address and your desired keywords. The filter will give you a new RSS feed address which will only send a report when the keywords are triggered.


Note:
 Reporting speed is very important when getting a good deal. These might need to be tested for speed. I’ll set up a test to find the quickest RSS filter. If someone knows the fastest filter let me know.

Step 3 – Add the new RSS address to your feed aggregator
Feed aggregators collect RSS and Atom feeds from blogs, news sites, and other places that syndicate their data. In this case we’ll be using an aggregator to collect our filtered feeds. This is where the deals will show up.

If you have a Google account you can simply use Google Reader or Google’s custom homepage as your reader. The Google homepage option is nice because you’ll see your deals more often. For the time sensitive deals this is really important. The downside to Google’s options is that it doesn’t update as quickly as other options. If you’re looking for a craigslist deal you might need to get a feed reader that updates every 30 minutes or less.

Web Based Readers

  • Google Reader – The reader can be added to your iGoogle homepage too
  • Google Homepage – Click on “add stuff” then click on “add Feed or gadgets”
  • PageFlakes – Much like Google’s homepage

Software Based Readers (cross platform)

Firefox Add-ons


Bonus Tips

Priceprotectr.com has deal alert system but no RSS feed, only email. To sign up for email alerts from 120 retailers click here.

For those hard to find items (Wii, Kindles, etc) Buylatr.com has a plugin for Firefox. It allows you to buy an item as soon as it comes in stock at Amazon.

If email is more your thing try using Yahoo Pipes to send you custom emails. The idea is the same as using RSS except you get emails instead.

Summary
Now that you’ve set up your Automatic Deal Finding Machine sit back and relax. You will be buying your items for less in no time!

Posted by [czar]
,

http://www.thesimpledollar.com/a-step-by-step-guide-to-creating-a-deal-finding-homepage/


3. Bargain Websites

Below, I’ve listed ten different feed URLs that you can copy and paste directly into iGoogle, as described above. Just copy the URL below, paste it as described above, and it becomes an automatically updating part of your iGoogle homepage.

If you use a feed reader, you can subscribe to any of these (likely just by clicking through, depending on how your system is configured):

Amazon Gold Box

http://rssfeeds.s3.amazonaws.com/goldbox
This lists almost all of the daily deals available from Amazon.com.

CheapTweet

This lists deals posted on Twitter, filtered by the users of CheapTweet.com.

Coupons.com

http://www.coupons.com/rss.asp
This lists the latest coupons from Coupons.com, most of which are for discounts on household products.

Dealnews (Most Popular)

http://content.dealnews.com/dealnews/rss/popular.xml
This lists the most popular deals discovered by Dealnews.com.

Dealspl.us

http://feeds.feedburner.com/dealspl/all
This lists a huge number of deals on a wide variety of products, filtered by social bookmarking sites. This is definitely one worth filtering (see below) because a lot of stuff comes through.

FatWallet.com Hot Deals

http://feeds.feedburner.com/FatwalletHotDeals
This lists a wide variety of deals (mostly technology items).

SlickDeals.net

http://feeds.feedburner.com/SlickdealsnetFP
This includes a wide variety of deals from many sources, all filtered by the SlickDealscommunity. This is definitely one worth filtering (see below).

Woot.com

http://www.woot.com/Blog/Feed.ashx
This is a daily tech deal site that often has amazing bargains.

4. Bargain Twitterers

A few months ago, I mentioned that there are many useful people on Twitter worth following for the deals they post. If you’re not into Twitter and would rather “follow” these people in another way, you can keep track of the posted deals using this iGoogle technique. Here are the feed URLs for seven Twitterers I mentioned in the article.

DellOutlet

http://twitter.com/statuses/user_timeline/5688592.rss
Computer deals from Dell.

AmazonDeals

http://twitter.com/statuses/user_timeline/1922861.rss
Lots of “hidden” deals from Amazon.com.

AmazonMp3

http://twitter.com/statuses/user_timeline/14740219.rss
Excellent legal albums in mp3 format for $1.99-2.99.

Dealyzer

http://twitter.com/statuses/user_timeline/17331003.rss
A wide variety of deals of all types.

DealUniversity

http://twitter.com/statuses/user_timeline/17893953.rss
An excellent assortment of tech deals.

CheapTweet

http://twitter.com/statuses/user_timeline/17545909.rss
An aggregation of many of the best deals posted to Twitter.

BooksAMillion

http://twitter.com/statuses/user_timeline/17248079.rss
A great collection of deals on books.

5. Filter These URLs

You might find that all of these things are overkill – you can’t possibly keep track of hundreds of deals a day. If that’s the case, it’s quite easy to simply filter them, focusing in on the specific items you’re looking for.

FeedSifter.com lets you put in a RSS feed URL (like the ones above), then filter it for any list of terms you put in, then gives you an output feed that contains only the items that match the terms you listed. I actually described using FeedFilter once before, to similar ends.

Let’s see this in play. I like to use Amazon’s Gold Box (described above) for certain types of bargains: video games, cookbooks, and a few other odds and ends. I don’t have time for – and don’t really care that much – about the other deals that Gold Box might give me.

So, I’d fill out Feed Sifter like this:

feed filter sample

A quick note: search terms fewer than three characters match everything, so use ones longer than that.

When you click on the “Filter my Feed” button, you’ll get an option to subscribe to that new feed. Click on that and you’ll find that the Amazon feed is now filtered for those search terms. Copy THIS URL and add it to iGoogle as described at the top of this post, and you’ll be able to see the latest deals, filtered to your specifications, whenever you want.

You can filter ANY of the above URLs in the same way using FeedFilter. Personally, I filter some feeds (SlickDeals) and don’t filter others (AmazonMp3).

How Do I Use It?

I have a nice big page built on this technique that I visit several times a day. Perhaps once a week, I’ll find something worth picking up – but when I do find something, I’m usually saving quite a bit on that item.

Give it a try! It takes a bit of time to get such a page set up, but once you’re set up and ready to go, it can be a big help when you’re looking for Christmas gifts or for specific bargains for yourself.

Posted by [czar]
,

아마존 상품 정보 가져오기



아마존 associates 사이트 가입 후 

amazon product api 이용해서 가져오기


https://affiliate-program.amazon.com


aws 만 열심히 찾고 있었는데 여기 사이트 찾느라 고생....


https://affiliate-program.amazon.com/gp/advertising/api/detail/main.html




Posted by [czar]
,

valid isbn 13

카테고리 없음 2015. 3. 13. 15:08

public boolean validateIsbn13(String isbn) {

if (isbn == null) {

return false;

}


// remove any hyphens

isbn = isbn.replaceAll("-", "");


// must be a 13 digit ISBN

if (isbn.length() != 13) {

return false;

}


try {

int tot = 0;

for (int i = 0; i < 12; i++) {

int digit = Integer.parseInt(isbn.substring(i, i + 1));

tot += (i % 2 == 0) ? digit * 1 : digit * 3;

}


// checksum must be 0-9. If calculated as 10 then = 0

int checksum = 10 - (tot % 10);

if (checksum == 10) {

checksum = 0;

}


return checksum == Integer.parseInt(isbn.substring(12));

} catch (NumberFormatException nfe) {

// to catch invalid ISBNs that have non-numeric characters in them

return false;

}

}

Posted by [czar]
,

amazon price

카테고리 없음 2015. 3. 5. 17:37
http://ctrlq.org/code/19882-amazon-api-php


 



<?php
 
// Region code and Product ASIN
$response = getAmazonPrice("com", "B00KQPGRRE");
 
function getAmazonPrice($region, $asin) {
 
$xml = aws_signed_request($region, array(
"Operation" => "ItemLookup",
"ItemId" => $asin,
"IncludeReviewsSummary" => False,
"ResponseGroup" => "Medium,OfferSummary",
));
 
$item = $xml->Items->Item;
$title = htmlentities((string) $item->ItemAttributes->Title);
$url = htmlentities((string) $item->DetailPageURL);
$image = htmlentities((string) $item->MediumImage->URL);
$price = htmlentities((string) $item->OfferSummary->LowestNewPrice->Amount);
$code = htmlentities((string) $item->OfferSummary->LowestNewPrice->CurrencyCode);
$qty = htmlentities((string) $item->OfferSummary->TotalNew);
 
if ($qty !== "0") {
$response = array(
"code" => $code,
"price" => number_format((float) ($price / 100), 2, '.', ''),
"image" => $image,
"url" => $url,
"title" => $title
);
}
 
return $response;
}
 
function getPage($url) {
 
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_FAILONERROR, true);
curl_setopt($curl, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$html = curl_exec($curl);
curl_close($curl);
return $html;
}
 
function aws_signed_request($region, $params) {
 
$public_key = "PUBLIC_KEY";
$private_key = "PRIVATE_KEY";
 
$method = "GET";
$host = "ecs.amazonaws." . $region;
$host = "webservices.amazon." . $region;
$uri = "/onca/xml";
 
$params["Service"] = "AWSECommerceService";
$params["AssociateTag"] = "affiliate-20"; // Put your Affiliate Code here
$params["AWSAccessKeyId"] = $public_key;
$params["Timestamp"] = gmdate("Y-m-d\TH:i:s\Z");
$params["Version"] = "2011-08-01";
 
ksort($params);
 
$canonicalized_query = array();
foreach ($params as $param => $value) {
$param = str_replace("%7E", "~", rawurlencode($param));
$value = str_replace("%7E", "~", rawurlencode($value));
$canonicalized_query[] = $param . "=" . $value;
}
 
$canonicalized_query = implode("&", $canonicalized_query);
 
$string_to_sign = $method . "\n" . $host . "\n" . $uri . "\n" . $canonicalized_query;
$signature = base64_encode(hash_hmac("sha256", $string_to_sign, $private_key, True));
$signature = str_replace("%7E", "~", rawurlencode($signature));
 
$request = "http://" . $host . $uri . "?" . $canonicalized_query . "&Signature=" . $signature;
$response = getPage($request);
 
var_dump($response);
 
$pxml = @simplexml_load_string($response);
if ($pxml === False) {
return False;// no xml
} else {
return $pxml;
}
}
 
?>
 



Posted by [czar]
,
$CATALINA_HOME/conf/context.xml
tomcat 7
<Context allowLinking="true">
tomcat 8
<Context>
    <Resources allowLinking="true"></Resources>
...


Posted by [czar]
,

Welcome to PLACEHOLD.IT
A quick and simple image placeholder service.



이미지 사이즈

Posted by [czar]
,


SharpProxy.exe



sharpproxy


port forwarding


iisexpress


localhost to ip

Posted by [czar]
,

http://darkhorizon.tistory.com/259


1. 이메일 형식 체크

    String regex = "^[_a-zA-Z0-9-\\.]+@[\\.a-zA-Z0-9-]+\\.[a-zA-Z]+$";

2. 숫자만 입력 체크
    String regex = "^[0-9]+$";  // 정수형만 체크
   String regex = "
^[+-]?\\d*(\\.?\\d*)$";  //실수형까지 체크

3. 아이디 형식 체크
    String regex = "^[a-zA-Z]{1}[a-zA-Z0-9_]{4,11}$";
    예) 시작은 영문으로만, '_'를 제외한 특수문자 안되며 영문, 숫자, '_'으로만 이루어진 5 ~ 12자 이하


4. HTML 걷어내기

  String regex = "<(\\/)?[^>]+>";

Posted by [czar]
,

nginx + tomcat - tomcat 로그, 접속 아이피 남기기


nignx 설정

location ~ \.jsp$ {

proxy_pass              http://localhost:8080;

proxy_set_header        X-Real-IP $remote_addr;

proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;

proxy_set_header        Host $http_host;

}



tomcat server.xml 에서

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="localhost_access_log." suffix=".txt"
               pattern="%{X-Forwarded-For}i %h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>



jsp 에서 

request.getHeader("X-Forwarded-For");



http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip


<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
               prefix="access_log." suffix=".txt"
               pattern="Remote User[ %{X-Forwarded-For}i %l %u %t ] Request[ &quot;%r&quot; ] 
               Status Code[ %s ] Bytes[ %b ] Referer[ &quot;%{Referer}i&quot; ] 
               Agent[ &quot;%{User-agent}i&quot; ] " />


Posted by [czar]
,