Posts

Does fixing the Checkstyle INFOs improve performance of the Java code -

i wondering while fixing checkstyle infos if leads performance improvement. understand info cannot taken still comment appreciated. i not think offer such improvement can wrong hence better seek expert advice :) assuming refer standard checkstyle checks: http://checkstyle.sourceforge.net/availablechecks.html refer style of source code, not "style of programming". example, code formatting ("arraytrailingcomma", "genericwhitespace"...) not affect actual bytecode generated class. there may class causes hundreds of warnings, , anothe class free of warnings, , in end, may compile identical bytecode. some of checks may influence code in way changes bytecode, , thus, influences performance @ least theoretically . example, "equalshashcode" check: if causes insert equals/hashcode method, may of course affect performance (but more importantly: behavior of program!). "booleanexpressioncomplexity" might cause split complex expre...

javascript - Column of Kendo Grid is not resizable in IE 10 and IE 11 -

i using kendo grid in web app , including kendo.all.min.js file. version of js file 2012.1.515. in grid, columns not resizeable in ie 10 , ie 11 though works fine in other browsers. i have created sample of grid , included same file grid columns not resizeable in ie 10 , ie 11. here sample code: <!doctype html> <html> <head> <title></title> <link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.common.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.rtl.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.silver.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.dataviz.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2013.3.1324/styles/kendo.dataviz.silver.min.cs...

wordpress - Woocommerce- Reset product thumbnail size on product page -

i having interesting problem. thumbnail size product pages set 175 x 169 , catalog product 362 x 257 pixels. displaying product in header of shop using code: <?php echo do_shortcode( '[product sku="62-1166"]' ); wp_reset_postdata(); ?> this working fine. on shop pages when particular product displayed (one displayed in header) thumbnail appears 362 x 257 pixels rather 175 x 169 pixels. how fix issue?, here demo link: http://restaurantapplianceparts.com/dev/ ahmar. edit: actually, on further inspection due #product .woocommerce .products li being set width:90%. change field , sort issue. #product .woocommerce .products li { width: 175px; } this being set "image-wrap quickview" div class. has max width of 362px. if edit css give .image-wrap.quickview max-width of 175px, product thumbnail display correct width. .image-wrap.quickview { max-width: 175px; } this reduce size of thumbnails in related products below. altern...

regex - Regular Expression in Google Analytics for two parts of string -

i need filter data in google analytics based on regular expression. i need "if string contains "/secure//secure/common/callback" and, further down string contains words "true" include it. i tried this: ^/secure//secure/common/callback*true i added start there bunch of text in between "callback" , "true" returns 0 when should return thousands of records. what regular expression use here? use this: ^/secure//secure/common/callback.*?true . means character .* means character repeated o or more times .*? has same meaning except not greedy, matches less amount of characters possible, usefull if have more 1 matching ( true in case) in string.

javascript - How to test with cross-origin data in node-webkit? -

i've been testing of cross-origin data through node success. however, ran situation node couldn't solve request data. i'm using getimagedata() function, throws cross-origin problem. on other cross-origin problems, node can handle requests, function seems give trouble. also, if package node-webkit , run stand-alone, works great. i'm sure there explanation, cannot find it. why node-webkit work, running node.js server not? without pouring code on page, let me try explain i'm doing. have axis camera i'm getting data from. it's motion jpeg, , stored in img tag i've got id'd. data coming http://ip , etc, etc. i think problem getimagedata() function requesting img tag id rather somewhere external, in-turn throw cross-origin flag. am correct? how can solve this? also, know of way test node-webkit apps without packaging them? essentially, node-webkit simulator? i have solved problem adding package.json: "chromium-args...

wordpress - Redirect with .htaccess without changing URL in address bar -

this question has been asked before, i'm not getting expected results following solutions in there. i need make redirect .htaccess without changing url in address bar. is, www.mydomain.com/en-uk should redirect www.mydomain.com/en but address bar should still display www.mydomain.com/en-uk i've tried few things no matter how url changes redirected path. of now, have this: redirectmatch 301 /en-uk/(.*) http://www.mydomain.com/en//$1/ also, should noted site uses wordpress. ideas? try: rewriteengine on rewriterule ^en-uk(/.*)?$ /en$1 [l]

php - Can't pass variable from routes to view in laravel 4 -

i'm trying learn laravel 4 , reading book called laravel: code bright i'm trying pass array data routes view error errorexception undefined variable: squirrel codes these. same in book. url localhost/test routes.php <?php route::get('/{squirrel}', function() { $data['squirrel'] = $squirrel; return view::make('simple', $data); }); ?> simple.php <!doctype html> <html lang="eng"> <head> <meta charset="utf-8"> <title>views!</title> </head> <body> <p>i wish <?php echo $squirrel; ?> squirrel!</p> </body> </html> you have variable this: <?php route::get('/{squirrel}', function($squirrel) { $data['squirrel'] = $squirrel; return view::make('simple', $data); });