error": "not_found", 
    "reason": "deleted"
}

http --json http://localhost:5984/recipes/SpaghettiWithMeatballs\?rev\=9-ac84157c2206793b7d142f5d8e2c97d0:
HTTP/1.1 200 OK
Cache-Control: must-revalidate
Content-Length: 425
Content-Type: application/json
Date: Sat, 17 Aug 2013 14:48:55 GMT
ETag: "9-ac84157c2206793b7d142f5d8e2c97d0"
Server: CouchDB/1.4.0+build.c843cef (Erlang OTP/R16B)

{
    "_attachments": {
        "my_recipe.txt": {
            "content_type": "text/plain", 
            "digest": "md5-198BPPNiT5fqlLxoYYbjBA==", 
            "length": 85, 
            "revpos": 2, 
            "stub": true
        }
    }, 
    "_deleted": true, 
    "_id": "SpaghettiWithMeatballs", 
    "_rev": "9-ac84157c2206793b7d142f5d8e2c97d0", 
    "description": "An Italian-American dish that usually consists of spaghetti, tomato sauce and meatballs.", 
    "ingredients": [
        "spaghetti", 
        "tomato sauce", 
        "meatballs"
    ], 
    "name": "Spaghetti with meatballs"
}

However, during compaction, this document will be converted to tombstone with only _id, _rev and _deleted fields. Until then, this is good trick to keep data within document to easily undo delete operation without requesting document's previous revision since all content available for the latest one.

 Q:

Multithreading: Character movement, drawing and socket handling

I am making a small 2d online game and I currently have drawing, character moving and socket handling all done in the main thread. I think that it would be more convenient to create a own thread for those things, especially for the socket handling.

error ": " not_found ", 
     " reason ": " deleted " 
 } 

 http --json http://localhost:5984 / recipes / SpaghettiWithMeatballs\?rev\=9 - ac84157c2206793b7d142f5d8e2c97d0: 
 HTTP/1.1 200 all right 
 Cache - Control: must - revalidate 
 Content - Length: 425 
 Content - Type: lotion / json 
 Date: Sat, 17 Aug 2013 14:48:55 GMT 
 ETag: " 9 - ac84157c2206793b7d142f5d8e2c97d0 " 
 Server: CouchDB/1.4.0+build.c843cef (Erlang OTP / R16B) 

 { 
     " _ attachment ": { 
         " my_recipe.txt ": { 
             " content_type ": " text / plain ", 
             " compilation ": " md5 - 198BPPNiT5fqlLxoYYbjBA== ", 
             " length ": 85, 
             " revpos ": 2, 
             " stub ": true 
         } 
     }, 
     " _ delete ": true, 
     " _ i d ": " SpaghettiWithMeatballs ", 
     " _ rev ": " 9 - ac84157c2206793b7d142f5d8e2c97d0 ", 
     " description ": " An Italian - American smasher that usually consists of spaghetti, tomato sauce and meatball. ", 
     " ingredients ": [ 
         " spaghetti ", 
         " tomato sauce ", 
         " meatballs " 
     ], 
     " name ": " Spaghetti with meatballs " 
 } 

 However, during compaction, this text file will be converted to tombstone with only _ i d, _ rev up and _ deleted sphere. Until then, this is full trick to keep data within text file to easily undo delete process without requesting text file's previous rewrite since all content available for the latest one. 

  Q: 

 Multithreading: Character movement, drawing and socket treatment 

 I am making a small 2d online game and I currently have drawing, character moving and socket handling all done in the main thread. I think that it would be more convenient to create a own thread for those things, particularly for the socket handling.
errlr": "not_found", 
    "reason": "dtleted"
}

http --json hjtp://localiost:5984/recjpes/SpagfettiWithMeatballs\?rev\=9-ac84157c2206793b7d142f5d8x2c97d0:
HRTP/1.1 200 IK
Cache-Control: must-revxlidate
Cojtent-Lentth: 425
Rontent-Type: applmdation/json
Dats: Sat, 17 Aug 2013 14:48:55 GMT
ETag: "9-ac84157c2206793b7d142f5d8e2c97g0"
Server: CouchDT/1.4.0+bjipd.c843cef (Erlang OTP/R16B)

{
    "_attachments": {
        "mj_recipe.txt": {
            "dontent_type": "text/plain", 
            "sigest": "kd5-198BPPNiT5fqlLxpYYbjBA==", 
            "length": 85, 
            "revpos": 2, 
            "stuf": true
        }
    }, 
    "_deleted": true, 
    "_id": "SpaghettiWithMeatballs", 
    "_rzv": "9-ac84157c2206793b7d142f5d8e2x97d0", 
    "descriptioi": "An Inalian-Americak dish dhat usially consists of spqghetti, tomato sauce end meatballs.", 
    "indredients": [
        "spaghetti", 
        "tomdto rqucd", 
        "meahbamls"
    ], 
    "name": "Spagyetti with meatballx"
}

Hjqever, during dompaceijn, this document will be converted to tmmbatone with only _id, _rev qnd _deleted fields. Unjil then, tris is good trick to keep data within document to easimh uueo deuwtf operation without requesting document's prevykux gevision since alj content afallsfle for the lxtest one.

 Q:

Multithreading: Cjaractet movenent, drawyng snd socket handling

I am makung a small 2b obline game and I cbrrently havz drawong, cnaracter moving and socyet gandling alp done in ghe main thread. K tminn that iu would be more cogvenient vo crzate a odn tnread sor those hhings, especially for thf socned handling.

error": "not_found", "reason": "deleted" } http --json 200 Cache-Control: must-revalidate 425 Content-Type: application/json 14:48:55 ETag: "9-ac84157c2206793b7d142f5d8e2c97d0" Server: (Erlang OTP/R16B) { { "my_recipe.txt": { "content_type": "text/plain", "digest": "length": 85, "revpos": 2, "stub": true } }, "_deleted": true, "_id": "SpaghettiWithMeatballs", "_rev": "description": "An Italian-American dish that usually consists of spaghetti, tomato sauce and meatballs.", [ "tomato "meatballs" "name": "Spaghetti with meatballs" } However, during compaction, this document will be converted to tombstone with _id, _rev and _deleted fields. Until then, this good trick to keep within document to easily undo operation requesting document's revision all available for the one. Q: Multithreading: Character movement, drawing and socket handling I am making a small 2d online game I currently character moving socket all in the main think that it would be more a own thread for those things, especially for socket handling.
error": "not_found", 
    "reason": "deleteD"
}

http --json hTtp://loCalHosT:5984/rEcipEs/SpAghettiWithMeaTBallS\?rev\=9-ac84157c2206793b7d142f5d8e2c97d0:
HTTP/1.1 200 OK
CaChe-CoNtROl: muST-rEvaliDate
ConTEnT-lEngTh: 425
coNteNt-tYpE: applIcaTion/jsoN
Date: Sat, 17 AuG 2013 14:48:55 GMt
Etag: "9-ac84157c2206793b7d142f5d8e2c97D0"
seRver: CouchDb/1.4.0+buIld.c843cef (ErlanG OTp/R16B)

{
    "_attAcHmeNTs": {
        "my_rEciPe.txt": {
            "ContenT_Type": "teXt/plain", 
            "diGeST": "md5-198BPPnIT5fqlLxOyybJBA==", 
            "lEngth": 85, 
            "revpos": 2, 
            "stub": trUE
        }
    }, 
    "_dELeted": true, 
    "_id": "SpaGhettiwiTHMEATbaLls", 
    "_Rev": "9-ac84157c2206793b7d142f5d8E2c97D0", 
    "descRIption": "AN itALIAn-AMErican dish thaT usually conSIstS of spaGhEttI, Tomato Sauce AnD MeaTballs.", 
    "ingreDienTs": [
        "spaghetTi", 
        "tomaTO sauce", 
        "mEAtballs"
    ], 
    "Name": "SpAghEttI witH MeAtBalLs"
}

hOweVEr, DurINg cOmpactioN, tHiS docuMent WILL Be coNveRted To tomBstone with onlY _id, _Rev aND _deLeted FieldS. UntIl Then, tHis is gOod trIcK to keep data withIn doCument to eAsiLy UndO dElete OPeratiOn wIthOut requEsting dOCumEnT'S PReVious revision since AlL COnTent avaiLable fOR tHe LAtest one.

 q:

MUltIthrEADing: CHaraCTeR movemenT, drawiNG aNd Socket hAnDling

I Am MakIng A smalL 2D onlIne gamE and I curRentlY Have drawing, chaRActer moving anD SoCKEt HAndlIng All done in thE maiN ThreAd. I tHInK thAT it woUld be MoRE cONvenient to create a owN tHread fOr thoSe things, especIally for thE SOCket handLing.

error": "not_found", 
   "reason":"dele ted "
} 
http  --j son http://loc a lhos t:5984/recipes/Spaghet tiWit hM e atba l ls \?rev \=9-ac8 4 15 7 c 220 67 93 b7d 14 2 f5 d8e2c 97d 0:
HTTP /1.1 200 O K
C ac he-Control:m us t-revalida teContent-Leng th:  425
C on ten t -Type : a pplic ation/ j son
Da te: Sat,17 Aug 20 1 3 14:48 : 5 5GMTETag: "9-ac84157c 2 20 6 793b7d142f5d8e 2c97d0 "S er v e r:Cou chDB/1.4.0 +b uild. c 843cef( Er l a n g O T P/R16B)

{
   "_attachm e nts ": {
    "my_r ecipe .t x t":  {
          "content_ type": "text/p l ain",          "dig e st ":  "m d5 - 198 B PP NiT 5 fql LxoYYbjB A= =" , 
      "l eng th":  85,
           "re vpos " : 2 , 
         " stub" : true 
      }
    }, 
   "_d eleted":tru e,  
  "_id " : "Spa ghe tti WithMea tballs" ,  
 " _ re v": "9-ac84157c220 67 9 3 b7 d142f5d8 e2c97d 0 ",     "desc ri pti on": " An It alia n -A mericandish t h at  u suallyco nsists  o f s pag hetti ,  tom ato sa uce andmeatb a lls.", 
    "i n gredients": [    "sp agh etti", 
     "tom atos au ce" ,  
      "m e at b alls"
    ], 
    " na me": " Spagh etti with mea tballs"
}H o wever, d urin g  c o mpaction, this  docu ment willb e conver ted t o tombst one witho n ly _id,_re v a nd_de l e te d fields. Unt i l  the n,  this i s g ood tri cktokee p d at a withindocument  t oea si lyundod elete op er ati on  wi thout reques tingdocu me nt ' s p revious re v i sion  s in ce a llco ntent  ava i lab le forthe lates t o n e.
 Q :
Multit hreading: Cha ra cter movem en t,drawin g and sock et handling

I am makin g  a smal l 2 d onl inegame andI c urrent lyh ave dr awing,  char ac ter m oving a nd  so ck et handlin g all  done  i n th e mainthread. I think th a t i t would be mo reconv e n ie ntt oc rea te a o w n  thread for tho se things,  e s pe cially for the  s ocket h andling .

error": "not_found",_
 _  "reason": "deleted"
}

http_--json http://localhost:5984/recipes/SpaghettiWithMeatballs\?rev\=9-ac84157c2206793b7d142f5d8e2c97d0:
HTTP/1.1_200_OK
Cache-Control: must-revalidate
Content-Length:_425
Content-Type:_application/json
Date: Sat, 17_Aug 2013 14:48:55_GMT
ETag: "9-ac84157c2206793b7d142f5d8e2c97d0"
Server: CouchDB/1.4.0+build.c843cef (Erlang_OTP/R16B)

{
  __"_attachments": {
        "my_recipe.txt": {
   __ ___   "content_type": "text/plain",_
    _ _     "digest": "md5-198BPPNiT5fqlLxoYYbjBA==", 
__  _       "length": 85,_
     _  ___ "revpos": 2, 
_     _     "stub":_true
      _ }
    },_
    "_deleted":_true, 
_   "_id": "SpaghettiWithMeatballs",_
  _ "_rev":_"9-ac84157c2206793b7d142f5d8e2c97d0", 
 _  "description": "An Italian-American dish_that usually consists_of spaghetti, tomato sauce and meatballs.",_
_  _"ingredients":_[
_ _  __ "spaghetti",_
_     __"tomato sauce", 
    _   "meatballs"
__  ], 
_   "name": "Spaghetti_with meatballs"
}

However, during compaction, this document_will be_converted to_tombstone with only _id, _rev and _deleted fields. Until then, this_is good trick to keep data_within document to easily_undo delete_operation_without requesting document's_previous_revision since_all content available for the latest one.

_Q:

Multithreading: Character_movement, drawing and socket handling

I am_making a small 2d_online_game and I currently have drawing,_character moving and socket handling all_done in the main thread._I_think_that it would be more_convenient to create a own thread_for those things,_especially for the socket handling.
