db.operationsCollection.distinct("username").length;
Beware! I made typos, always. This is a multilingual blog, contains Turkish and English posts. Here my homepage without typos : hasantayyar.net - Blog moved to medium.com/@htayyar. Old posts will remain here.
db.operationsCollection.distinct("username").length;
Subscription | # Read | ||
---|---|---|---|
Hacker News | 1,761 | ||
TechCrunch | 571 | ||
Mashable! | 371 | ||
NYT > Science | 296 | ||
The Next Web | 293 | ||
NYT > Movies | 255 | ||
9to5Google | 216 | ||
Sosyal Medya | 190 | ||
myNoSQL | 140 | ||
Webrazzi | 133 |
Most efficient way to generate a list of Unigrams from a text field in MongoDB - Stack Overflow http://bit.ly/vNcEvU
node_keys_indexable=name,phone relationship_keys_indexable=since node_auto_indexing=true relationship_auto_indexing=true
Ardından node_auto_index üzerinden search atılarbilir ama exact match olmalı. Ben bunu "select by property" amacıyla kullanıyorum.
[
{
"hash":"b41ae64e2e80ba1806245c61179ad903",
"title":"Webrazzi",
"url":"http:\/\/www.webrazzi.com\/",
"total_posts":209,
"top_tags":
{"blog":77,"web2.0":54,"internet":36,"web":33,"technology":29,"webrazzi":23,"news":19,"haber":17,"blogs":14,"webdesign":13}
}
]
{"response": "false"}
{"response": "true"}
As Wade notes, a simple snippet of PHP code can be used with apps via a JSON call to query whether or not Google thinks any given text contains rude words.
meseleyi irdeleyin http://labs.phurix.net/posts/googles-official-profanity-api{ "filtered" : { "query" : { "match_all" : {} }, "filter" : { "geo_polygon" : { "place.location" : { "points" : [ {"lat" : 40, "lon" : -70}, {"lat" : 30, "lon" : -80}, {"lat" : 20, "lon" : -90} ] } } } } }
{
"fuzzy_like_this" :
{
"fields" : ["blog.title", "blog.tags"],
"like_text" : "futbol ve sinema hakkında",
"max_query_terms" : 20, "min_similarity" : 0.5
}
}
sudo apt-get install python-dev
sudo /etc/init.d/tor restart
sudo vi /etc/tor/torrc
#ControlPort 9051
telnet 127.0.0.1 9051
AUTHENTICATE
signal NEWNYM
quit
#!/usr/bin/expect -f
# telnet into tor and get clean path using expect
spawn telnet 127.0.0.1 9051
expect "Escape character is '^]'."
send "AUTHENTICATE\r"
expect "250 OK"
send "signal NEWNYM\r"
expect "250 OK"
send "quit\r"
While memcached does not support any type of wildcard deleting or deletion by namespace (since there are not namespaces), there are some tricks that can be used to simulate this. They do require extra trips to the memcached servers however.Example, in PHP, for using a namespace called foo:
$ns_key = $memcache->get("foo_namespace_key");
// if not set, initialize it
if($ns_key===false) $memcache->set("foo_namespace_key", rand(1, 10000));
// cleverly use the ns_key
$my_key = "foo_".$ns_key."_12345";
$my_val = $memcache->get($my_key);
//To clear the namespace do:
$memcache->increment("foo_namespace_key");
Content strategy is the web’s hottest new thing. But where did it come from? Why does it matter? And what does the content renaissance mean for you? This brief guide explores content strategy’s roots, and quickly and expertly demonstrates not only how it’s done, but how you can do it well. A compelling read for both experienced content strategists and those making the transition from other fields.
sudo apt-get install g++ libssl-dev curl apache2-utils
sudo apt-get install git-core
git clone git://github.com/ry/node.git
git clone https://github.com/joyent/node.git
cd node ./configure make sudo make install
http://11x.blogcu.com/telnet-ile-memcache-test-etmek/9427166