Posts

Featured post

android - trying to open the sdcard's .txt file in my EditText -

i trying open sdcard's .txt file in edittext change text in , save changes using button click not going in right way .may know correct way achieve objective? try one.. must set permission in manifest file: <uses-permission android:name="android.permission.write_external_storage"/> file f = new file(environment.getexternalstoragedirectory().getabsolutepath() + "followed ur file dir"); file f = new file(environment.getexternalstoragedirectory().getabsolutepath() + "sdcard.txt"); (file wavfile : f.listfiles()) { string str = wavfile.getname().tostring(); stringbuffer stringbuffer = new stringbuffer(); string adatarow = ""; string abuffer = ""; try { file myfile = new file("/...

iphone - strange exception NSInvalidArgument on viewDidLoad ios7 -

ok, im writing app iphone under ios7, using xcode 5 i've got main view controller table view controller, , on start good, view loads without errors, after leave view controller, use other scenes, , rewind via segue got this: terminating app due uncaught exception 'nsinvalidargumentexception', reason: '*** -[__nsarraym insertobject:atindex:]: object cannot nil' here code of method - (void)viewdidload { [super viewdidload]; nslog(@"from collectinfotvc, viewdidload"); // set side bar button action. when it's tapped, it'll show sidebar. _sidebarbutton.target = self.revealviewcontroller; _sidebarbutton.action = @selector(revealtoggle:); // set gesture [self.view addgesturerecognizer:self.revealviewcontroller.pangesturerecognizer]; _cancelcarbutton.hidden = yes; } could guys please me ? upd.#1: call stack looks this 2014-03-24 11:48:23.286 demotaxi[28008:60b] *** terminating app due uncaught exception ...

python - SWIG function not printing output -

i'm having prblem in executing function i've written in c. i've made , interface file given below: %module cnode %{ #include "cnode.h" %} %include "cnode.h" and here c program : #include <stdio.h> #include "cnode.h" void kill(void) { printf("method executed\n"); } the header file: void kill(void); when i'm trying execute in python interpreter, don't output. there problem declarations or bug? figured out, kill() predefined function won't work. changing name of function works fine.

css - I want to align grid in center -

as see code grid_2 has float left. added center class fix in center div block floating left. want place grid_2 div in center. can 1 me fix this? html code: <div class="center"><div class="grid_2">content goes here </div> </div> css: .grid_0 { width: 100%; margin-bottom: 15px; display: block; } .grid_1, .grid_2, .grid_3, .grid_3c, .grid_4, .grid_4c { margin-left : 1.00%; margin-right : 1.00%; margin-bottom : 15px; float : left; display : block; -webkit-box-sizing: border-box; /* safari/chrome, other webkit */ -moz-box-sizing: border-box; /* firefox, other gecko */ box-sizing: border-box; /* opera/ie 8+ */ } .center{ display: block; text-align: center; margin: 0 auto !important; } .grid_1 { width: 98%; } .grid_2 { width: 48%; } please find link below http://jsfiddle.net/kiranm/aqbs6/5/ ok, here problem lies in width of grid_2. as width of grid_2 = 48% of...

oop - Function for all prototypes - Javascript -

i'm working on video player video.js. on side i've got elements (volume, fullscreen, play, pause...) prototypes . on other side i've got functions parse() going use of canvas prototypes (they come different elements). parse function : vjs.parsehex = function(c) { if(c.charat(0) == "#") { return c.substring(1,7); } else if(c.substr(0,2) == "0x") { return c.substring(2,8); } else { return c; } }, vjs.parsered = function(c) { return parseint((this.parsehex(c)).substring(0,2),16); }, vjs.parsegreen = function(c) { return parseint((this.parsehex(c)).substring(2,4),16); }, vjs.parseblue = function(c) { return parseint((this.parsehex(c)).substring(4,6),16); } an exemple of canvas prototype : js.volumebar.prototype.drawsound = function(){ . . . } i want parse functions accessible of different prototypes. possible ? if yes, how can that? thank helping me, léa. it seems vjs sort...

neo4j - Relationship properties are confused with nodes resulting in SyntaxError: Don't know how to compare that -

if make following cypher query results expected: match (:keydata {key:"kgv"})<-[k:keydata]-(s:symbol) k.value>15.0 return k.value nodes of label keydata have properties {key: "some string"} nodes of label symbol have properties {key: "some string"} relationships of label keydata have properties {value: 123.45} but if symbol nodes matched before: match (s:symbol) match (:keydata {key:"kgv"})<-[k:keydata]-(s) k.value>15.0 return k.value i error: don't know how compare that. left: "evn" (string); right: 15.0 (double) i using neo4j 2.0.1 you comparing string value double value, not possible. have 2 options. store values in different type or use neo4j 2.1.0-m01 , use tofloat() method. e.g. where tofloat(k.value)>15.0

Contact Form PHP Email Script -

Image
hello having problem email script on site. i used files https://jonbake.com/blog/bootstrap-3-contact-form-with-captcha/ but add fields. sending email i'm not receiving data inputted on fields. here html form <form role="form" id="feedbackform"> <div class="form-group"> <input type="text" class="form-control" id="first_name" name="first_name" placeholder="first name"> <span class="help-block" style="display: none;">please enter name.</span> </div> <div class="form-group"> <input type="text" class="form-control" id="last_name" name="last_name" placeholder="last name"> <span class="help-block" style="display: none;">please enter name.</span> </di...