Posts

html - cakePHP input with characters counting -

i have html code this: <label>main text (<span class="main_text_count">0</span><span>) characters</span></label> <textarea name="data[news][sentence]" id="main_text" class="form-control" required rows="8"></textarea> and don't know how create text area this, using form helper of cakephp. simply done using form helper (both cakephp 2 , cakephp 3 ):- echo $this->form->textarea( 'news.sentence', [ 'id' => 'main_text', 'class' => 'form-control', 'rows' => 8, 'label' => 'main text (<span class="main_text_count">0</span><span>) characters</span>' ] ); in future make sure you've read cake's documentation.

wordpress - Contact Form 7 SMS integration with twilio -

how setup can send out sms whenever has fill in form? i'm using https://www.twilio.com sms. include actions in contact form 7 when submitting form? appreciate here, thanks! you can hook in cf 7 process. have here , here , here more information , examples on how it. hooking where/after mail sent might interesting want do.

vb.NET Screen Location -

i'm working multi monitor setup. know can screen.allscreens(x) specific screen, there way identify screen in position? i.e. screen 0 on right, screen 1 on left, screen 2 in middle i'm trying position 1 form @ top left of each screen, , way can think me.location = new point(-screen.allscreens(1).bounds.width, screen.allscreens(1).bounds.top) (that assuming screen 1 on left) any help? wrapping in sort of loop autogenerate forms each screen amazing too, can handle myself. need know how position each 1 @ top left of each screen.. thanks :3 as mentioned on site, if i'm understanding correctly should want: private sub button1_click(sender object, e eventargs) handles button1.click dim number = 1 each scr in screen.allscreens.orderby(function(s) s.bounds.left) dim f new form {.text = number.tostring(), .startposition = formstartposition.manual, .location = scr.bounds.loc...

xcode - How to blur the background when an alert is showing? -

Image
i apply blur effect existing view when alert shown on screen, , doing displaying imageview ( blureffect:blurbackgroundsignup ) on top of view, hiding , showing when calling following code: [self blureffect:blurbackgroundsignup]; the blureffect method works blurred view when put code in viewdidload method, when check alert or add code displaying alert refuses show. guessing there needs overridden , not know how this. in short, there's nothing in uialertview prevent image view blurred image showing up. it's simple. you have diagnostics identify source of problem. problem snapshot itself. pause execution @ point snapshot created, hover on uiimage variable holds blurred snapshot, click on "quick look" button (looks eye; ), , confirm blurred image looks correct: the next thing check make sure image added image view , image view added view hierarchy. can continue execution of app , hit view debug button : or can run app, hit "pause" ...

html - submenu not positioning exactly side-by-side -

i found issue .sub_menu code left:-; , transform:translatex(-%); ,so changed position relative , re-positioned 2 codes above, seemed work 2 sub menus have no longer side-by-side. separate few centimeters top:, not sure made happen, appreciated,thanks jsfiddle sub menu pops when hover on gallery .sub_menu { display: none; position:relative; top:-60%; left:-350%; transform:translatex(-40%); width: auto; } .sub_menu > li { display:inline-block; } .sub_menu li { background:-webkit-linear-gradient(#77047e,#ff00ff); background:-o-linear-gradient(#77047e,#ff00ff); background:-moz-linear-gradient(#77047e,#ff00ff); background:linear-gradient(#77047e,#ff00ff); } .sub_menu li a:hover { background:#ff00ff; top:1em; } from understand @ taking quick sub.menu s odd. have style position: absolute , , make them align in same exact place. can see doing here: .sub_menu { display:none; position:absolute; top:-37%; left:-47%; transform:transla...

java - Gradle: Adding sources.jar file within /lib folder of published dist.zip along with all my other dependencies -

i have java project building using gradle. releasing dist.zip folder project , want add sources.jar project /lib subfolder within dist.zip. able create sources.jar file along dist.zip file not sure how add sources.jar within dist.zip. how can this? i've tried copy .jar /lib folder after creating unable work. below publishing , sourcesjar task within gradle.build script. task sourcesjar(type: jar, dependson: classes) { classifier = 'sources' sourcesets.main.allsource } publishing { repositories { maven { url 'localfolder' } } publications { maven(mavenpublication) { groupid 'ca.project' artifactid applicationname version version components.java artifact sourcesjar { classifier "sources" } artifact distzip { classifier "dist" } } } ...

go - Append to golang gob in a file on disk -

i'm trying save gob -encoded data in file on disk simple datastore. however, when open next time gob encoder ignores whatever data in file, , starts on sending definitions of sent formats before sending data. seeing gob.encoder takes io.writer , rather io.readwriter , makes sense. encoder has no idea what's in file, because cannot read it. this is, however, quite inefficient. it's unnecessarily hard parse, since have reset decoder each time encoder restarted when writing file, since gob type id's might've changed. how can continue write end of file containing gob data? have create new file, moving data on gob encoder knows types sent, or there way me tell encoder types should know already, or other way? need work across software restarts. it not possible reconstruct encoder state other encoder had when writing stream of gob values. if cannot use original encoder when appending values, have couple of options: move data on suggest. use framing me...