Posts

mongodb - MongoLab and Elasticsearch -

my mongo database hosted @ mongolab. i'd use elasticsearch full text search engine on top of db. as understand mongodb needs run replica-set, don't have control on how database run. i'm using 500mb free plan. on top of that, i'm using scala playframework. was successful technologies , services? update: finally i'm not using mongodb anymore, , went straight elasticsearch solution. found nice cloud host providing 500mb free plan http://facetflow.com/ it useful development. i didn't find satisfying scala library es, therefore i'm using dispatch , make direct http requests es instance. i hope find useful. just quick note ... mongohq has oplog support mongodb elastic deployments ... using elastic search , river. http://blog.mongohq.com/elastic-deployments-now-with-oplog-access/

javascript - Sync file system API in the web -

i have chrome packaged app saves files chrome.syncfilesystem api. want develop web app , fetch these files web. there way this. thanks. you can use google drive api access google drive, , find files there. can discover location empirically, but, not documented, change @ time. google , others (e.g., apple) have habit of moving formerly-easily-visible files obfuscated places. to started, access google drive ui (web page or chrome app), , you'll find synced files. may have hunt around bit links on left of google drive web page.

ascii - Error trying to install argh-0.24.1 Python 3.2 -

i'm trying install argh-0.24.1 via pip on mac os x mavericks i'm getting ascii decode error. here traceback: eos87@local ~> pip install argh downloading/unpacking argh downloading argh-0.24.1.tar.gz running setup.py egg_info package argh traceback (most recent call last): file "<string>", line 16, in <module> file "/users/eos87/.virtualenvs/myenv/lib/python3.2/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] unicodedecodeerror: 'ascii' codec can't decode byte 0xc2 in position 55: ordinal not in range(128) complete output command python setup.py egg_info: traceback (most recent call last): file "<string>", line 16, in <module> file "/users/eos87/.virtualenvs/myenv/lib/python3.2/encodings/ascii.py", line 26, in decode return codecs.ascii_decode(input, self.errors)[0] unicodedecodeerror: 'asci...

javascript - Could not make json data on spring 3.2 and got an error (Page not found 404) -

i trying select data database using sprng 3.2, mybatis , want receive data formatted json. i put jackson-core-asl, jackson-core-lgpl , jackson-mapper-asl(1.9.13) in pom.xml when send request server, got error "http status 404 - /web-inf/jsp/listjson.jsp" . wonder why configuration file doesn't work @responsebody. i googled lot still have error. doesn't work on spring 3.2? when put below instead of <mvc:annotation-driven /> works well. know annotationmethodhandleradapter deprecated on spring 3.2. <beans:bean class="org.springframework.web.servlet.mvc.annotation.annotationmethodhandleradapter"> <beans:property name="messageconverters"> <beans:list> <beans:bean class="org.springframework.http.converter.json.mappingjacksonhttpmessageconverter" /> </beans:list> </beans:property> servlet-context.xml <mvc:annotation-driven /> <bean class="...

How can i pass values from two html pages to php? -

i have 2 html pages : page1.html <html> <body> <form action="page2.html" method="post"> enter first name: <input type="text" id="text1"> <input type="submit" value="next"> </form> </body> </html> page2.html <html> <body> <form action="test.php" method="post"> enter last name: <input type="text" id="text2"> <input type="submit" value="submit"> </form> </body> </html> now, retrieve value of text1 page1.html , text2 page2.html. how can go it? looks looking forms. see tutorial http://www.w3schools.com/php/php_forms.asp . post form data page1.php page2.php. on page2.html can access them via $_post. please aware: not secure example, showing purposes! when want show user generated data in frontend, please use sanitizing , validation http://ww...

Run CELERY as Daemon in Ubuntu -

how run celery daemon service in ubuntu instead of running " celery -a projname worker -l info " command each time. i using celery 3.1.8 version.... you can make celery daemon init.d script celery's repo (save /etc/init.d/ ). need create configuration file script load in /etc/default/celeryd . here's full celery doc .

c# - Search From Textbox and highlight GridView according session in Asp.net -

hey guys trying search textbox text changed evet , highlight gridview using session .. i have tables in database in rows showroomid, customer_name , pendriveno there. showroom id showrrom login have stored session["user"] . i want when search textbox ,i want particular sessions data should displayed if login showroom id 'hero' row data should displayed on searching text box . i have tried code protected void textbox1_textchanged(object sender, eventargs e) { sqlconnection con1 = new sqlconnection(configurationmanager.connectionstrings["connectionstring"].connectionstring); sqlcommand cmd1; sqldataadapter da1; dataset ds1; cmd1 = new sqlcommand("select * tblshowroom showroomid='"+session["users"]+"' , customer_name like'" + textbox1.text + "%' or pendriveno like'" + textbox1.text + "%'", con1); da1 = new sqldataadapter(cmd1); ds1 = new dataset(); ...