Posts

Twitter Bootstrap Media Grid: square box with images -

Twitter Bootstrap Media Grid: square box with images - this not question, solution problem had. i'm posting here, because can imagine others utilize it. the problem had was: want show overview of square image tiles using twitter bootstrap (media grid module) fixed width using grid scheme (span2, span3, etc.) without cluttering markup. the less code below works out of box , extension bootstrap library: .squarecolumns(@columnspan: 1) { width: (@gridcolumnwidth * @columnspan) + (@gridgutterwidth * (@columnspan - 1)); height: (@gridcolumnwidth * @columnspan) + (@gridgutterwidth * (@columnspan - 1)); } .maxsquarecolumns(@columnspan: 1) { max-width: (@gridcolumnwidth * @columnspan) + (@gridgutterwidth * (@columnspan - 1)); max-height: (@gridcolumnwidth * @columnspan) + (@gridgutterwidth * (@columnspan - 1)); } ul.square-media-grid { .media-grid; li a.span1 { .squarecolumns(1); img { .maxsquarecolumns(1); } } li a.span2 { .squarecolumns(2); img...

Get the derivative of a function_handle in MATLAB -

Get the derivative of a function_handle in MATLAB - is possible derivative of function_handle other function_handle? like: fun1 = @(x) x^2; % ... disp(fun2); @(x) x*2 i know how find derivative of symbolic function can't convert function_handle symbolic function. i'm new matlab , couldn't find way on doing that. in advance. the short reply "no." matlab has no thought contents of function_handle mean in symbolic sense. you're improve off creating using syms in first place. a longer reply either utilize symbolic math toolbox, suggested @a danesh, or approximation, suggested @andrey. however, if you're working polynomials, can store coefficients array , utilize next functions: polyval evaluate conv multiply deconv divide polyder differentiate polyint integrate matlab derivative function-handle

php - Getting image from mysql database -

php - Getting image from mysql database - not sure happened, script working fine few days ago , i'm not sure have changed have messed up. pulling blob's database , displaying them. script is: <?php include '../dbc.php'; $id = $_post['dropdown']; $query = sprintf('select * images image_id = %d', $id); $result = mysql_query($query); $image = mysql_fetch_array($result); header('content-type: ' . $image['mime_type']); header('content-length: ' . $image['file_size']); echo $image['file_data']; ?> i dont think there wrong script because can echo out $id, $image['mime_type'], , $image['file_size'] fine. echoing $image['file_data'] gives me of symbols on screen lead me believe working fine. when run script get the image "http://localhost/php/pop_category_viewimages.php" cannot displayed because contains errors ive reached end of newbie debugging skills , stuck here. ...

opencv - Issue building xcode Project for real Device -

opencv - Issue building xcode Project for real Device - i have 1 problem , it bothering me while. i m usning opencv framework template project have founded on internet: http://www.eosgarden.com/en/opensource/opencv-ios/download/ i need opencv function comparing 2 images, need convert uiimage iplmage in order utilize in function. however, builds fine on simulator, but, when connect ipad 2 device (i need because i`m using photographic camera in application) compiler throws me error: undefined symbols architecture armv7: "_cvcreateimage", referenced from: +[someviewcontroller createiplimagefromuiimage:] in someviewcontroller.o ld: symbol(s) not found architecture armv7 i seek installing xcode 4.2, have downgraded xcode 4.1, no success. help appreciated. the opencv build you're using pretty old , intended work ios3+4. guess going newer version supports ios5 thought :) take @ this version. grab copy, setup ipad-support , you're go (t...

actionscript 3 - Creating a Popup in FLEX 3.0 -

actionscript 3 - Creating a Popup in FLEX 3.0 - i have created popup custom component extends canvas want of canvas similar showed in image. there thought how create pop similar that. here giving sample code have done till now... <?xml version="1.0" encoding="utf-8"?> <mx:canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="550" height="350" backgroundalpha="0"> <mx:script> <![cdata[ import mx.managers.popupmanager; public function btnimage_click():void { popupmanager.removepopup(this); } ]]> </mx:script> <mx:image source="images/close.png" top="4" left="500" usehandcursor="true" buttonmode="true" click="{btnimage_click();}" /> <mx:fade id="fadein" duration="700" alphafrom="0.0" alphato="1.0"/> <mx:vbox height="1...

Using relative position in Outlook html message -

Using relative position in Outlook html message - i have problem, while using outlook view message. website generates emails html body, using relative position divs create text appear on picture. every other email app displays correct, except of outlook. have workarounds problem? the position property not supported outlook 2007 , 10 solution craft style or come table-based solution back upwards outlook. word 2007 html , css rendering capabilities in outlook 2007 (part 1 of 2) guide css back upwards in email html outlook position relative

How can I get a left-navigation column to fill the entire left side of the middle of a webpage using CSS? -

How can I get a left-navigation column to fill the entire left side of the middle of a webpage using CSS? - i'm working on making web page: http://jsfiddle.net/pw8yj/ and want left navigation area extend way downwards left side, bottom of header top of footer. tried setting height: 100% didn't seem work. there i'm doing wrong here? this never work way you're expecting to. cannot set 100% height element go 100% of content, not height of parent container. what recommend doing removing background leftnav area, , instead, set repeating background on div id="middlearea" gray part repeat-y. way, no matter how big #middlearea gets, background expand regardless. you can seek resources faux columns may give templates , other results you're looking for: http://www.code-sucks.com/css%20layouts/faux-css-layouts/ cheers. css