Posts

Spring Security - Prevent AccessDeniedException from stopping application normal flow -

i'm using spring secuirty 3 acl module. i'm securing methods @preauthentication annotations using custom permissionevaluator . working fine, every time permissionevaluator returns access_denied accessdeniedexception thrown @ point , stops application execution. desired behaivore when permissionevaluator returns , access_denied , secured method call prevented (skipped) , rest of application keeps running normally. have idea on how achieve this? if wrap each call want happen in try...catch , can behavior. basically, since it's exception, normal exception handling apply it. if application can handle exception , continue normally, that! here's example of mean: // 1st method denied want continue execution after try { // call method throw exception } catch (/*the exception expect thrown , want continue after*/){} // 2nd method denied want continue execution after try { // call method b throw exception } catch (/*the exception expect thrown , ...

Opengl ES sliding texture animation -

i d animate texture on vertex left right. how can this? my old code is: float texcoords[] = { itextcoord, 0.0f, itextcoord, 1.0f, itextcoord+1.0f, 0.0f, itextcoord+1.0f, 1.0f, }; this.settexturecoords(texcoords); but isnt best:( you can use glmatrixmode(gl_texture_matrix) , gltranslatef() .

Selecting BLOB column from Oracle database to SQL Server database over linked server -

how select blob column oracle database using openquery on sql server using linked server connect oracle database? when try using syntax, receive error: select * openquery(linked_server_name , 'select blobcolumn table') derivedtbl_1 errors: ole db provider "msdaora" linked server "linked_server_name" returned message "oracle error occurred, error message not retrieved oracle.". ole db provider "msdaora" linked server "linked_server_name" returned message "data type not supported.". can change ole db provider you're using connect oracle? microsoft ole db provider oracle not support blob data types. oracle ole db provider does. if change connection oracle use oracle provider, should work.

javascript - ajax loading file with slideToggle effect -

i loading text files in div container, , i've made work far. wish animate slidetoggle effect. webpage looks like: <div id="content" style="width: 75%"> <?php foreach(new directoryiterator('uploads/temp') $file) { if(!$file->isdot()) { echo '<a href="#" onmousedown="javascript:ajax.query( \'view.php?file=uploads/temp/'.$file.'\',\'file\')">'.$file.'</a> '; } } ?> <div id="file" style="text-align: justify"></div> </div> how apply slidetoggle function links? can check actual webpage here many thanks you'll need attach callback event ajax request, slide animation not occur until content has loaded. using jquery's built-in ajax , event functionality this: <?php foreach... { // removed onmousedown, event attached using pure jquery ...

printing - Using Reportbuilder for Delphi, is it possible to print landscape and portrait within the same report? -

Image
we're using reportbuilder delphi , have report, made of several smaller subreports, set print landscape. there way make first subreport print in portrait, whilst others print landscape? i have tried setting orientation on tppreport printersetup object before prints , seemed work @ first, caused problems printing report, , exporting pdf. thanks! yes possible. in report design main, uncheck parentprintersetup sub reports. set polandscape or poportrait in printersetup sub report sub report tab. tested reportbuilder 12.03, delphi xe , foxit 4.1.1 edit 1 tested d2007 , reportbuilder 10.07. no , problem printing pdf first subreport portrait , second subreport landscape. here dfm containing report definition tested with. object form1: tform1 left = 0 top = 0 caption = 'form1' clientheight = 176 clientwidth = 377 color = clbtnface font.charset = default_charset font.color = clwindowtext font.height = -11 font.name = 'tahoma...

How to make Google Chrome extension to run jQuery Script -

i have jquery script: $('[id^=changesetlist] tr').each(function () { var sid = $(this).attr('sid'); $(this).find('td span.changesetdescription').append('<span class="csethash">' + sid + '</span>').css('color','#777'); }); i want run when visit kilnhg.com. i put in in kiln_hash.user.js file , installed chrome doesn't anything. i think might because requires jquery. i have read few tutorials , looks might need create manifest.json file , put , .user.js file zip file .crx extension. i still not know need put in manifest file. how can work? update i created manifest.json file: { "name": "kiln hash", "version": "1.0.1", "description": "show hash in changeset list in kiln", "content_scripts": [ { "matches": ["https://*.kilnhg.com/*"], "js": ["jqu...

php - mysql select data from two tables and different structure -

hi there i'm building kind of agenda/website php/mysql. agenda has public events , users' personal notes ordered date. need load events events table in database , notes notes table. 2 tables have different structure , have 1 same field: datetime. how can sort date public events , personal notes then? please me out! =) luca improving don's answer per op comments, can add column know table row in. select 'events' tbl, datetime, location, organizer, null notes events union select 'user_notes' tbl, datetime, null, null, notes user_notes order datetime desc