Posts

objective c - strike through a selected row in NSTableView -

objective c - strike through a selected row in NSTableView - i new mac app.in application have booked history tableview.when user click on "withdraw" button,i want strike through selected row of tableview.and getting tableview content nsarraycontroller.i don't know how it.if 1 knows,guide me do. in mac osx,not in ios. one way obtain utilize nstextview within table cell , bind attribute string array controller. in array controller can alter relative value adding attribute of type nsstrikethroughstyleattributename . objective-c cocoa nstableview nsarraycontroller nsattributedstring

forms - Django: Radio buttons "checked" after validation -

forms - Django: Radio buttons "checked" after validation - i'm having modelform django works fine. validates fine, problem: input field (a couple of radio buttons) doesn't checked="checked" after returning bad validation, user has go on radio buttons again. seems stupid. is there way django set checked="checked" on radio buttons on validation? django forms validation radio-button

symfony2 - BorisMorel / LdapBundle is calling connect even on non-restricted area -

symfony2 - BorisMorel / LdapBundle is calling connect even on non-restricted area - i have integrated borismorel / ldapbundle version 2.0 symfony version 2.0.16 ^/admin area , works, there's 1 issue - ldap bundle engaged ^/api not want. api should not utilize ldap. thought adding is_authenticated_anonymously ^/api access_control alternative should help, doesn't - trying connect. security.yml: security: firewalls: restricted_area: pattern: ^/admin anonymous: ~ provider: ldap imag_ldap: ~ form_login: login_path: /login check_path: /login_check logout: path: /logout target: /login providers: ldap: id: imag_ldap.security.user.provider encoders: imag\ldapbundle\user\ldapuser: plaintext access_control: - { path: ^/api$, roles: is_authenticated_anonymously } - { path: ^/login, roles: is_authenticated_anonymously }...

r - url in CRAN extension manual -

r - url in CRAN extension manual - aesthetics question cran manuals. how create urls description field reddish , function when clicked (like first url in url field)? 1 appears reddish in manual first url in th url field, , of links (such in bugreports field) don't work.. here's description (chopped down): package: bundle type: bundle title: stuff version: 0.2.1 date: 2012-05-09 author: me maintainer: bob <bob@gmail.com> depends: r (>= 2.15), imports: gridextra suggests: plyr lazydata: true description: bundle awesome. note: qdap not compiled mac users. installation instructions mac user or other os users having difficulty installing qdap please visit: http://trinker.github.com/qdap_install/installation license: gpl-2 url: http://trinker.github.com/qdap/ https://github.com/trinker/qdap bugreports: https://github.com/trinker/qdap/issues collate: 'adjacency_matrix.r' and manual: https://dl.dropbox.com/u/61803503/qd...

jquery - javascript: Avoid browser scrolling back to top on content insertion -

jquery - javascript: Avoid browser scrolling back to top on content insertion - i thought easy solve, can`t seem find solution anywhere. it's annoying javascript 'feature?'. every time add together content div document gets scrolled top. how can avoid annoying behaviour? n = 0; function addcontent() { div = document.getelementbyid('content'); for(var = 0; < 100; i++) { n++; div.innerhtml = div.innerhtml + n + '<br />'; } } </script> </head> <body> <div id="content"></div> <a href="#" onclick="addcontent()">more content</a> ex: http://jsfiddle.net/hqp2q/ the problem here , when click on anchor link , onclick event handler registered element fired. now default behavior anchor tag navigate href attribute of own. in case both happens , url navigated "#". "#" acting bookmark , browser html element has id , sa...

How to Create a XMPP Chat Client in Android with Openfire? -

How to Create a XMPP Chat Client in Android with Openfire? - i newbie android. wanted create xmpp chat client along force notifications. have installed openfire , server ready testing on local machine. at point doing 1. creating xmpp connection in async task 2. onpost creating chat manager protected void onpostexecute(final boolean success) { if (success) { if (connection != null) { chatmanager = connection.getchatmanager(); chat newchat = chatmanager.createchat("shobhit", new messagelistener() { public void processmessage(chat chat, message message) { //do } }); } } } but totally confused if doing correctly. read somewhere on stackoverflow async should used little duration activities , connection can timed out here. i found these probable solutions: runnable, handlers create servi...

asp.net mvc 3 - Property injection into custom WebViewPage using Autofac -

asp.net mvc 3 - Property injection into custom WebViewPage using Autofac - i'm creating internal application framework other dev teams in our organisation utilize build mvc applications from. part of that, i'm creating menu construction views, read configuration , modified based on current user's permissions. create menu part of framework, i've created custom webviewpage implementation custom html helper class needs take dependency on applicationdatareader build menu. i've read various posts explain mvc needs webviewpage have paramterless constructor, need utilize property injection. i've configured autofac mvc3 integration, including registering viewregistrationsource . problem is, when dependent property accessed, it's null. here's custom view page , helper phone call i'm trying make: public abstract class oubaseviewpage<tmodel> : webviewpage<tmodel> tmodel : class { public ouhelper<tmodel> ou { get; set; ...