Posts

ios - Export audio file after adding an effect -

i have audio file want process using effects (like pitch effect) , write final result file. before process file , save disc let user play pitch effect , listen changes in real time. this how real time stuff: let audiosession = avaudiosession.sharedinstance() audiosession.setcategory(avaudiosessioncategoryplayback, error: nil) audiosession.setactive(true, error: nil) audioengine = avaudioengine() audiofile = avaudiofile(forreading: audiourl!, error: nil) audioplayernode = avaudioplayernode() audioengine.attachnode(audioplayernode) changepitcheffect = avaudiounittimepitch() changepitcheffect.pitch = 1.0 // default audioengine.attachnode(changepitcheffect) audioengine.connect(audioplayernode, to: changepitcheffect, format: nil) audioengine.connect(changepitcheffect, to: audioengine.outputnode, format: nil) let framecapacity = uint32(audiofile.length) let buffer = avaudiopcmbuffer(pcmformat: audiofile.processingformat,...

Drawing pixels inside a grid in VB.NET -

i have paint program shows zoomed in version of image editing , have interpolation mode set "nearest neighbor". also, have pixel grid drawn on there , grid on each place there pixel on image. shows accurate amount of pixels. added brush draw on picturebox want brush draw on squares in other drawing programs pixel grid views. long mouse pointer within pixel square, fill inside of pixel square in. here codes: (my picturebox named canvaseditor.) the code generates pixel grid: private sub canvaseditor_paint(byval sender object, byval e system.windows.forms.painteventargs) handles canvaseditor.paint if not bmpnew nothing e.graphics.drawimage(bmpnew, 0, 0) end if dim g graphics = e.graphics dim pn new pen(color.dimgray) '~~~ color of lines dim x integer dim y integer dim intspacing integer = 8 '~~~ spacing between adjacent lines '~~~ draw horizontal lines x = canvaseditor.wi...

mysql - Error installing "nokogiri" in a Ruby on Rails application? -

i've been following along lynda.com's ruby on rails course. did mentioned inside videos. i trying run rails server command, should default webrick, correct? i run command , has issue in nokogiri.rb file , on line 29 error happening read: require 'nokogiri/nokogiri' which command prompt throwing on when running rails server command. idea causing this? if so, commands need run settle this? me sounds missed when installing mysql. i not sure nokogiri , why rails server won't run , points line of code. the path file (wherever installed folder to)\lib\ruby\gems\2.2.0\gems\nokogiri-1.6.6.2-x64-mingw32\lib edit**: have chain of errors, goes -long path-, -longpath- etcetera. tried installing latest gem, , wasn't successful. there log file can share guys figure out issue. nokogiri ruby "gem" (library) parsing xml , html. your rails project should have gemfile specifies name , version of each gem needed run project. install...

asp.net mvc - convert model property value with javascript in razor -

i have foreach iterate through items in razor syntax, @foreach (var item in model) { <tr> <td> @html.displayfor(modelitem => item.name) </td> <td> @html.displayfor(modelitem => item.colorcode) </td> <td> <div style="background-color:*************">&nbsp;&nbsp;&nbsp;</div> </td> <td> @html.actionlink("edit", "edit", new { id = item.id }) | @html.actionlink("details", "details", new { id = item.id }) | @html.actionlink("delete", "delete", new { id = item.id }) </td> </tr> } colorcode int value ,i define external function named inttocolorhex convert colorcode equivalent hex value,i want replace ************** hex color value each row according colorcode,i need thing bellow: ...

ios - How to make two sides edges with keeping scale mode Aspect fill? -

i trying make edges 2 sides in scene using code let leftedge : sknode = sknode() leftedge.physicsbody = skphysicsbody(edgefrompoint: cgpointzero , topoint:cgpointmake(0.0, self.frame.size.height + 100)) leftedge.position = cgpointzero; leftedge.physicsbody!.categorybitmask = edgecategory; leftedge.physicsbody!.collisionbitmask = bubblescategory; self.addchild(leftedge) // right edge let rightedge : sknode = sknode() rightedge.physicsbody = skphysicsbody(edgefrompoint: cgpointzero , topoint:cgpointmake(0.0, self.frame.size.height + 100)) rightedge.position = cgpointmake(self.frame.size.width, 0.0); rightedge.physicsbody!.categorybitmask = edgecategory; rightedge.physicsbody!.collisionbitmask = bubblescategory; self.addchild(rightedge) it works fine if use resizefill scale mode want make mode aspectfill how can make edges keeping mode aspectfill ?

ios - How to have a swipe gesture back animation -

i have swipe gesture set "right" (swipe left right) , segue go previous view controller. if run app, gesture works (go back) animation appears right left (like i'm going next page instead of previous one) how can change animation go left right? can done via storyboard? thank you

HTML If I add some character to the text so it moves the next text -

i have problem texts in html code: <table width="100%"> <tr> <td align="left"><p style="font-family:arial;font-size:13px;color:white;">10000</p></td> <td align="center"><p style="font-family:arial;font-size:13px;color:white;">100 </p></td> <td align="right"><p style="font-family:arial;font-size:13px;color:white;">100 </p></td> </tr> </table> i want it, when add character first td (align left) move second , third td (align center , align right) thank every answer have nice day :) set width don't resize fit whatever content in cells, e.g. <table> <tr> <th>month</th> <th>savings</th> </tr> <tr> <td width="70%">january</td> <td width="30%">$100</td> <...