Posts

javascript - Forcing mobile devices to activate :hover CSS properties on first touch and activate link on second touch -

: ) so, i'm trying solve hover effect issue. have tooltips on of links. code looks this: <a href="https://wikipedia.org/wiki/space_shuttle_atlantis"> <h6 class="has-tip">space shuttle <p class="tip">the space shuttle invented santa claus</p> </h6> </a> and css bit more involved: .tip { display: block; position: absolute; bottom: 100%; left: 0; width: 100%; pointer-events: none; padding: 20px; margin-bottom: 15px; color: #fff; opacity: 0; background: rgba(255,255,255,.8); color: coal; font-family: 'ubuntu light'; font-size: 1em; font-weight: normal; text-align: left; text-shadow: none; border-radius: .2em; transform: translatey(10px); transition: .25s ease-out; box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.28); } .tip::before { content: " "; display: block; position: absolute; bottom: -20px; left: 0; height: 20px; width: 100%; } ...

SSIS: How to change metadata on flat file connection manager -

i working in bids. have ssis package loops on files in given directory , imports of them table. so, control flow has foreach loop container data flow task inside of it. data flow task goes straight flat file source ole db destination. because directory can change, have made foreach directory dynamic (i.e., gave package variable, can change when directory changes). files field has stuff*.pip, such files in directory match pattern imported. variable mappings tab has file name variable, same variable used in expressions of flat file connection manager. when set flat file connection manager, had point existing file pick file's metadata. changed file connection manager dynamic (i.e., added file name variable in expressions property) such foreach loop container pick files (that match pattern). since then, metadata on file has changed. so, when open solution file, throws warning on flat file source in data flow task. resolve this, have temporarily change flat file connect...

iOS: Debugging memory leaks for UILabel in swift -

i new profiling , using instruments in xcode. facing of problem of memory leaks in tableviewcell uilabel(calayer). in code tableviewcell have fixed view called bottomview. bottomview may or may not contain uilabel can either directly within bottomview or within subview of bottomview. every time within init method cell check bottomview , remove superview , set nil. reinitialise bottomview (using uiview(frame: ) ) , switch case follows adds contents bottomview required. i've set other uilabels within cell nil , remove superview in deinit fixed. my questions , doubts: is there way particular uilabel created in code allocations screen or other way trace object in code? because i'm still assuming leaks bottomview have variable uilabels. other i've removed other uilabels superview in both cell , viewcontroller containing tableview. how use "record reference counts" setting in allocation record setting? read @ many places can used address problem i'm facing...

javascript - How to remove ellipsis if element isn't wide enough -

i have html element has css properties of text-overflow: ellipsis , overflow: hidden . these work great in truncating text when it's wider width of div it's in , displaying ellipsis. however, if div resized smaller point ellipsis shown ( or when it's small can't show ellipsis , reverts 1 character of text ), want remove ellipsis altogether , not display anything. possible? i don't want have check width of text seems hackish. i'd prefer cleaner.

Laravel 5.1 access event object in listener -

i trying out laravel 5.1's queue, having problem working $event object in listener. authcontroller.php public function postgenerateresettoken() { try { $admin = admin::where( 'email', '=', input::get( 'email' ) )->firstorfail(); $token = bus::dispatch( new generatepasswordresettoken( $admin ) ); event( new passwordresettokenwasgenerated( $admin, $token ) ); return success(); } catch( modelnotfoundexception $exception ) { return fail(); } } passwordresettokenwasgenerated.php class passwordresettokenwasgenerated extends event { use serializesmodels; public function __construct( $admin, $token ) { $this->admin = $admin; $this->token = $token; } public function broadcaston() { return []; } } sendforgottenpasswordemail.php class sendforgottenpasswordemail implements shouldqueue { public function __construct() ...

Get the type of field in django template -

i using django forms , want use twitter bootstrap's css in html. template looks this: {% field in form %} <div class="form-group"> {{ field.label_tag }}<!--same thing : <label for="{{field.id_for_label}}"></label> --> <input type="{{field.type}}" class="form-control" id="{{field.auto_id}}" placeholder="email"> </div> {% endfor %} i can't figure out out type value. {{field.type}} . is there way type of input field in django templates? thanks in advance update: reason asking question because want able apply bootstrap classes input element. in bootstrap3, use default css input types have add form-control class input element so: <input type="text" class="form-control" id="{{field.auto_id}}" placeholder="">. if use django's field {{field}} can't add form-control class. hope clarifies thing...

Groovy Sql Execute Statement won't accept closures -

i have statement: sqlinstance.execute(executestring){ dummy, reallist-> debug("real list: "+reallist) } which fails 'invalid column type' but: def bool = sqlinstance.execute(executestring) works. if print bool, prints 'true'. for reference: executestring = "select distinct channel_id guide_sched" for reason, closure isn't working execute method in groovy's sql, although i've checked documentation , it's supposed to. it looks first environment testing on ran groovy 2.4 , second runs groovy 2.1. execute statement using didn't exist until after 2.1 instead, used .rows() function return groovyrowresult parsed information needed, instead of accessing directly in .execute() closure.