Posts

asp.net - Telerik Radcalender inside Repeater - Events not working -

i using telerik rad controls in project. have radcalendar inside repeater. <asp:repeater id="resultrpt" runat="server"> <itemtemplate> <telerik:radcalendar style="width: 191px; height: 123px" id="radcalendar1" runat="server" enablemonthyearfastnavigation="false" autopostback="true" multiviewcolumns="1" multiviewrows="1" enablemultiselect="true"> </telerik:radcalendar> <telerik:radtooltipmanager width="270px" height="135px" style="font-size: 11px" relativeto="element" id="radtooltipmanager1" runat="server" offsetx="7" position="middleright" onajaxupdate="radtooltipmanager1_ajaxupdate" skin="telerik" autoclosedelay="90000" </telerik:radtooltipmanager> </itemtemplate> </asp:repeater> this radajaxmanager <telerik:radajaxma...

iphone - Core data refactoring -

hi methods like '- (nsfetchedresultscontroller *)fetchedresultscontroller ' are placed in code of view controllers. find bit messy write data fetching code along lifecycle methods or table delegate methods. point should refactor coredata methods other helper class dataloader , call them in view controllers? wrong thing or going loose coding benefits of core data methods. i moving fetchedresultscontroller helper class idea. problem encounter spelling of attributes right. for example predicate , want filter on attribute called @"isselected" . there no check compiler nor linker check string isselected . have double check each line string has been used. a search&replace won't work on misspellings because don't know bugs have been introduced. when predicate wrong no results fetched. problem don't know if there no matching rows or if have filtered wrong. need check @ runtime , consumes time. for predicates saved templates exist, p...

php - Use the default route with Zend Router by default -

how can configure zend_controller_router use default route default? whatever reason unknown, uses current route. this causing annoying routing issues, , don't feel editing hundreds of links explicitly use default route reasonable solution add 1 custom route. your question isn't obvious , confusing, try though. i going assume not mean zend_controller_route in fact talking links generated in views. you can use baseurl() this <a href="<?=$this->baseurl("about-us")?>">about us</a> you can set baseurl in bootstrap this zend_controller_front::getinstance()->setbaseurl("/"); if working locally may want set this zend_controller_front::getinstance()->setbaseurl("/my-app/public"); using baseurl() in views use path base urls on. remember must wrap links in baseurl() work. the url() helper not useful this, used doing things pagination want current parameters of request object maintaine...

version control - Mercurial: Create a branch without having to make a change first -

i heard way create branch in mercurial repository make changes in working copy, commit them new branch. in subversion, can create branch without having make changes (by copying trunk path under tags ) - possible in mercurial well? i've seen tortoisehg, it's possible can done via command-line tool , don't know it. my workflow is: create feature branch. do work in feature branch. create release candidate branch. merge feature(s) release candidate branch. deploy, test, fix deploy, test, fix release candidate branch. merge release candidate branch trunk. many in advance. it depends on mean branch. a named branch can created giving name , committing, it'll end new changeset in history, don't need explicitly change of files in working folder allowed commit. hg branch newname hg commit -m "created branch newname" you can using tortoisehg dialog. however, if want create unnamed branch, ie. head, yes, need change something. , ...

java - Hibernate get object with linked objects -

i have problem hibernate mapping , queries. have object have relation b , c. the fetch mode lazy ( @manytoone(fetch = fetchtype.lazy) ) , can't change it. problem next: when object method ( hibernatedao.get ), object whitout relation b , c. if create criteria, force relation criteria.setfetchmode(...) query. have read on web it's not thing make criteria object primary key. how method ? thanks. you can use fetch profiles have fetch mode set lazy default, , eager specific query: http://docs.jboss.org/hibernate/stable/annotations/reference/en/html_single/#d0e3524 and if using hibernate version doesn't supports fetch profiles, can hql query retrieves tree need, using joins. but have read on web it's not thing make criteria object primary key. i careful before ruling out solution because read somewhere it's "bad". may bad thing in end, if don't understand why bad, may ruling out solution made specific case ;-)

java - Can I convert array of integer to List<int> or List<Integer> by Arrays.asList(array)? -

possible duplicates: arrays.aslist() not working should? how convert int[] list<integer> in java? or must refactor int[] integer[] ? you can't have list<int> arrays.aslist(array); return list type t of (passed array) you can have like integer[] = new integer[]{1,2,3}; list<integer> lst = arrays.aslist(a);

flex - Adobe air: Navigate between .html pages? -

Image
i thought of myself being quite @ learning basic things of google , cup of coffee, when trying head around basic adobe air development, have totally failed. apparently there's plenty of tutorials loading data local storage remote places (ajax), have yet not seen clear instruction on how navigate between .html pages in applications directory. obviously <a href="" /> isn't going cut it, guess need dom javascript magic it, yet not have seen. how can navigate between .html pages in applications directory properly? thanks ok, understand doing. hand't realized air app can embedded html document javascript hooks air framework. pretty cool! more information can found here: http://help.adobe.com/en_us/air/1.5/devappshtml/ws5b3ccc516d4fbf351e63e3d118666ade46-7ecc.html anyways, since html, of html rules apply. have little "hello world" app uses both anchor navigation javascript navigation: <html> <head> <t...